File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed
sdk/python/feast/infra/offline_stores Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -130,6 +130,9 @@ class SnowflakeOfflineStoreConfig(FeastConfigBaseModel):
130
130
131
131
convert_timestamp_columns : Optional [bool ] = None
132
132
""" Convert timestamp columns on export to a Parquet-supported format """
133
+
134
+ max_file_size : Optional [int ] = None
135
+ """ Upper size limit (in bytes) of each file that is offloaded. Default: 16777216"""
133
136
model_config = ConfigDict (populate_by_name = True )
134
137
135
138
@@ -616,6 +619,9 @@ def to_remote_storage(self) -> List[str]:
616
619
DETAILED_OUTPUT = TRUE
617
620
HEADER = TRUE
618
621
"""
622
+ if (max_file_size := self .config .offline_store .max_file_size ) is not None :
623
+ query += f"\n MAX_FILE_SIZE = { max_file_size } "
624
+
619
625
cursor = execute_snowflake_statement (self .snowflake_conn , query )
620
626
# s3gov schema is used by Snowflake in AWS govcloud regions
621
627
# remove gov portion from schema and pass it to online store upload
You can’t perform that action at this time.
0 commit comments