File tree Expand file tree Collapse file tree
sdk/python/feast/infra/offline_stores Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -130,6 +130,9 @@ class SnowflakeOfflineStoreConfig(FeastConfigBaseModel):
130130
131131 convert_timestamp_columns : Optional [bool ] = None
132132 """ 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"""
133136 model_config = ConfigDict (populate_by_name = True )
134137
135138
@@ -616,6 +619,9 @@ def to_remote_storage(self) -> List[str]:
616619 DETAILED_OUTPUT = TRUE
617620 HEADER = TRUE
618621 """
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+
619625 cursor = execute_snowflake_statement (self .snowflake_conn , query )
620626 # s3gov schema is used by Snowflake in AWS govcloud regions
621627 # remove gov portion from schema and pass it to online store upload
You can’t perform that action at this time.
0 commit comments