| 94 | |
| 95 | |
| 96 | def check_chunked_overflow(name, col): |
| 97 | if col.num_chunks == 1: |
| 98 | return |
| 99 | |
| 100 | if col.type in (ext.binary(), ext.string()): |
| 101 | raise ValueError(f"Column '{name}' exceeds 2GB maximum capacity of " |
| 102 | "a Feather binary column. This restriction may be " |
| 103 | "lifted in the future") |
| 104 | else: |
| 105 | # TODO(wesm): Not sure when else this might be reached |
| 106 | raise ValueError( |
| 107 | f"Column '{name}' of type {col.type} was chunked on conversion to Arrow " |
| 108 | "and cannot be currently written to Feather format" |
| 109 | ) |
| 110 | |
| 111 | |
| 112 | _FEATHER_SUPPORTED_CODECS = {'lz4', 'zstd', 'uncompressed'} |