Originally from https://stackoverflow.com/questions/65413407/reading-in-feather-file-in-pyarrow-error-arrowinvalid-unrecognized-compressio
Writing with pyarrow 0.17:
In [1]: pa.__version__Out[1]: '0.17.0'In [2]: table=pa.table({'a': range(100)})
In [3]: frompyarrowimportfeatherIn [4]: feather.write_feather(table, "test_pa017_explicit.feather", compression="lz4", version=2)
# according to docstring, this should do the same, but apparently notIn [5]: feather.write_feather(table, "test_pa017_default.feather")Reading with pyarrow 1.0.0 works for both files, but reading it with master (pyarrow 2.0.0 gives the same error):
In [121]: pa.__version__Out[121]: '3.0.0.dev552+g634f993f4'In [123]: feather.read_table("test_pa017_default.feather")
Out[123]:
pyarrow.Tablea: int64In [124]: feather.read_table("test_pa017_explicit.feather")
---------------------------------------------------------------------------ArrowInvalidTraceback (mostrecentcalllast)
<ipython-input-124-700e4b059ed5>in<module>---->1feather.read_table("test_py017_explicit.feather")
~/scipy/repos/arrow/python/pyarrow/feather.pyinread_table(source, columns, memory_map)
238239ifcolumnsisNone:
-->240returnreader.read()
241242column_types= [type(column) forcolumnincolumns]
~/scipy/repos/arrow/python/pyarrow/feather.pxiinpyarrow.lib.FeatherReader.read()
~/scipy/repos/arrow/python/pyarrow/error.pxiinpyarrow.lib.check_status()
ArrowInvalid: Unrecognizedcompression type: LZ4In ../src/arrow/ipc/reader.cc, line538, code: (_error_or_value8).status()
In ../src/arrow/ipc/reader.cc, line594, code: GetCompressionExperimental(message, &compression)
In ../src/arrow/ipc/reader.cc, line942, code: (_error_or_value23).status()Reporter: Joris Van den Bossche / @jorisvandenbossche
Assignee: Joris Van den Bossche / @jorisvandenbossche
PRs and other links:
Note: This issue was originally created as ARROW-11163. Please see the migration documentation for further details.
Originally from https://stackoverflow.com/questions/65413407/reading-in-feather-file-in-pyarrow-error-arrowinvalid-unrecognized-compressio
Writing with pyarrow 0.17:
Reading with pyarrow 1.0.0 works for both files, but reading it with master (pyarrow 2.0.0 gives the same error):
Reporter: Joris Van den Bossche / @jorisvandenbossche
Assignee: Joris Van den Bossche / @jorisvandenbossche
PRs and other links:
Note: This issue was originally created as ARROW-11163. Please see the migration documentation for further details.