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

Function test_permutation_of_column_order

python/pyarrow/tests/parquet/test_basic.py:891–907  ·  view source on GitHub ↗
(tempdir)

Source from the content-addressed store, hash-verified

889
890
891def test_permutation_of_column_order(tempdir):
892 # ARROW-2366
893 case = tempdir / "dataset_column_order_permutation"
894 case.mkdir(exist_ok=True)
895
896 data1 = pa.table([[1, 2, 3], [.1, .2, .3]], names=['a', 'b'])
897 pq.write_table(data1, case / "data1.parquet")
898
899 data2 = pa.table([[.4, .5, .6], [4, 5, 6]], names=['b', 'a'])
900 pq.write_table(data2, case / "data2.parquet")
901
902 table = pq.read_table(str(case))
903 table2 = pa.table([[1, 2, 3, 4, 5, 6],
904 [0.1, 0.2, 0.3, 0.4, 0.5, 0.6]],
905 names=['a', 'b'])
906
907 assert table == table2
908
909
910def test_thrift_size_limits(tempdir):

Callers

nothing calls this directly

Calls 2

write_tableMethod · 0.45
read_tableMethod · 0.45

Tested by

no test coverage detected