@@ -876,6 +876,10 @@ def _sanitize_table(table, new_schema, flavor):
876876dictionary_pagesize_limit : int, default None
877877 Specify the dictionary page size limit per row group. If None, use the
878878 default 1MB.
879+ experimental_vector_encoding : bool, default False
880+ EXPERIMENTAL: Encode supported fixed-size list values, including the storage
881+ of fixed-shape tensor extension arrays, using Parquet VECTOR repetition.
882+ Unsupported fixed-size list values continue using standard LIST encoding.
879883store_schema : bool, default True
880884 By default, the Arrow schema is serialized and stored in the Parquet
881885 file metadata (in the "ARROW:schema" key). When reading the file,
@@ -1083,6 +1087,7 @@ def __init__(self, where, schema, filesystem=None,
10831087 store_decimal_as_integer = False ,
10841088 write_time_adjusted_to_utc = False ,
10851089 max_rows_per_page = None ,
1090+ experimental_vector_encoding = False ,
10861091 ** options ):
10871092 if use_deprecated_int96_timestamps is None :
10881093 # Use int96 timestamps for Spark
@@ -1138,6 +1143,7 @@ def __init__(self, where, schema, filesystem=None,
11381143 store_decimal_as_integer = store_decimal_as_integer ,
11391144 write_time_adjusted_to_utc = write_time_adjusted_to_utc ,
11401145 max_rows_per_page = max_rows_per_page ,
1146+ experimental_vector_encoding = experimental_vector_encoding ,
11411147 ** options )
11421148 self .is_open = True
11431149
@@ -2017,6 +2023,7 @@ def write_table(table, where, row_group_size=None, version='2.6',
20172023 write_time_adjusted_to_utc = False ,
20182024 max_rows_per_page = None ,
20192025 bloom_filter_options = None ,
2026+ experimental_vector_encoding = False ,
20202027 ** kwargs ):
20212028 # Implementor's note: when adding keywords here / updating defaults, also
20222029 # update it in write_to_dataset and _dataset_parquet.pyx ParquetFileWriteOptions
@@ -2051,6 +2058,7 @@ def write_table(table, where, row_group_size=None, version='2.6',
20512058 write_time_adjusted_to_utc = write_time_adjusted_to_utc ,
20522059 max_rows_per_page = max_rows_per_page ,
20532060 bloom_filter_options = bloom_filter_options ,
2061+ experimental_vector_encoding = experimental_vector_encoding ,
20542062 ** kwargs ) as writer :
20552063 writer .write_table (table , row_group_size = row_group_size )
20562064 except Exception :
0 commit comments