()
| 949 | |
| 950 | @pytest.mark.parquet |
| 951 | def test_parquet_read_options(): |
| 952 | opts1 = ds.ParquetReadOptions() |
| 953 | opts2 = ds.ParquetReadOptions(dictionary_columns=['a', 'b']) |
| 954 | opts3 = ds.ParquetReadOptions(coerce_int96_timestamp_unit="ms") |
| 955 | opts4 = ds.ParquetReadOptions(binary_type=pa.binary_view()) |
| 956 | opts5 = ds.ParquetReadOptions(list_type=pa.LargeListType) |
| 957 | |
| 958 | assert opts1.dictionary_columns == set() |
| 959 | |
| 960 | assert opts2.dictionary_columns == {'a', 'b'} |
| 961 | |
| 962 | assert opts1.coerce_int96_timestamp_unit == "ns" |
| 963 | assert opts3.coerce_int96_timestamp_unit == "ms" |
| 964 | |
| 965 | assert opts1.binary_type == pa.binary() |
| 966 | assert opts4.binary_type == pa.binary_view() |
| 967 | |
| 968 | assert opts1.list_type is pa.ListType |
| 969 | assert opts5.list_type is pa.LargeListType |
| 970 | |
| 971 | assert opts1 == opts1 |
| 972 | assert opts1 != opts2 |
| 973 | assert opts1 != opts3 |
| 974 | assert opts1 != opts4 |
| 975 | assert opts1 != opts5 |
| 976 | |
| 977 | opts4.binary_type = None |
| 978 | assert opts4.binary_type == pa.binary() |
| 979 | assert opts1 == opts4 |
| 980 | opts4.binary_type = pa.large_binary() |
| 981 | assert opts4.binary_type == pa.large_binary() |
| 982 | assert opts1 != opts4 |
| 983 | |
| 984 | opts5.list_type = pa.ListType |
| 985 | assert opts5.list_type is pa.ListType |
| 986 | assert opts5 == opts1 |
| 987 | opts5.list_type = pa.LargeListType |
| 988 | assert opts5.list_type is pa.LargeListType |
| 989 | assert opts5 != opts1 |
| 990 | |
| 991 | |
| 992 | @pytest.mark.parquet |
nothing calls this directly
no outgoing calls
no test coverage detected