MCPcopy Create free account
hub / github.com/apache/arrow / test_read_column_with_generator

Function test_read_column_with_generator

python/pyarrow/tests/test_feather.py:815–821  ·  view source on GitHub ↗
(tempdir, version)

Source from the content-addressed store, hash-verified

813
814
815def test_read_column_with_generator(tempdir, version):
816 table = pa.table([[1, 2, 3], [4, 5, 6], [7, 8, 9]], names=['a', 'b', 'c'])
817 path = str(tempdir / "data.feather")
818 write_feather(table, path, version=version)
819 columns_gen = (x for x in ['a', 'b', 'c'])
820 with pytest.raises(TypeError, match="Columns must be a sequence"):
821 read_table(path, columns=columns_gen)
822
823
824def test_nested_types(compression):

Callers

nothing calls this directly

Calls 2

write_featherFunction · 0.90
read_tableFunction · 0.90

Tested by

no test coverage detected