| 104 | |
| 105 | |
| 106 | def check_chunked_overflow(name, col): |
| 107 | if col.num_chunks == 1: |
| 108 | return |
| 109 | |
| 110 | if col.type in (ext.binary(), ext.string()): |
| 111 | raise ValueError(f"Column '{name}' exceeds 2GB maximum capacity of " |
| 112 | "a Feather binary column. This restriction may be " |
| 113 | "lifted in the future") |
| 114 | else: |
| 115 | # TODO(wesm): Not sure when else this might be reached |
| 116 | raise ValueError( |
| 117 | f"Column '{name}' of type {col.type} was chunked on conversion to Arrow " |
| 118 | "and cannot be currently written to Feather format" |
| 119 | ) |
| 120 | |
| 121 | |
| 122 | _FEATHER_SUPPORTED_CODECS = {'lz4', 'zstd', 'uncompressed'} |