Skip to content

Commit 9ff0ac1

Browse files
committed
Fix
Signed-off-by: Kevin Zhang <kzhang@tecton.ai>
1 parent b96a3ab commit 9ff0ac1

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

sdk/python/feast/infra/offline_stores/snowflake_source.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,11 @@ def __init__(
5757
_schema = "PUBLIC" if (database and table and not schema) else schema
5858

5959
self.snowflake_options = SnowflakeOptions(
60-
database=database, schema=_schema, table=table, query=query, warehouse=warehouse
60+
database=database,
61+
schema=_schema,
62+
table=table,
63+
query=query,
64+
warehouse=warehouse,
6165
)
6266

6367
# If no name, use the table as the default name
@@ -301,7 +305,7 @@ def warehouse(self):
301305
"""Returns the warehouse name of this snowflake table."""
302306
return self._warehouse
303307

304-
@table.setter
308+
@warehouse.setter
305309
def warehouse(self, warehouse):
306310
"""Sets the warehouse name of this snowflake table."""
307311
self._warehouse = warehouse

sdk/python/feast/templates/snowflake/bootstrap.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,6 @@ def bootstrap():
8181
replace_str_in_file(driver_file, "SNOWFLAKE_WAREHOUSE", snowflake_warehouse)
8282

8383

84-
85-
8684
def replace_str_in_file(file_path, match_str, sub_str):
8785
with open(file_path, "r") as f:
8886
contents = f.read()

0 commit comments

Comments
 (0)