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

Function test_parquet_file_format_read_options

python/pyarrow/tests/test_dataset.py:993–1007  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

991
992@pytest.mark.parquet
993def test_parquet_file_format_read_options():
994 pff1 = ds.ParquetFileFormat()
995 pff2 = ds.ParquetFileFormat(dictionary_columns={'a'})
996 pff3 = ds.ParquetFileFormat(coerce_int96_timestamp_unit="s")
997 pff4 = ds.ParquetFileFormat(binary_type=pa.binary_view())
998 pff5 = ds.ParquetFileFormat(list_type=pa.LargeListType)
999
1000 assert pff1.read_options == ds.ParquetReadOptions()
1001 assert pff2.read_options == ds.ParquetReadOptions(dictionary_columns=['a'])
1002 assert pff3.read_options == ds.ParquetReadOptions(
1003 coerce_int96_timestamp_unit="s")
1004 assert pff4.read_options == ds.ParquetReadOptions(
1005 binary_type=pa.binary_view())
1006 assert pff5.read_options == ds.ParquetReadOptions(
1007 list_type=pa.LargeListType)
1008
1009
1010@pytest.mark.parquet

Callers

nothing calls this directly

Calls 1

ParquetFileFormatMethod · 0.80

Tested by

no test coverage detected