Skip to content

Commit 74ae86b

Browse files
committed
Refactor stage_list to function_list
1 parent 8ef70ca commit 74ae86b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sdk/python/feast/infra/materialization/snowflake_engine.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -130,14 +130,14 @@ def update(
130130
with GetSnowflakeConnection(self.repo_config.batch_engine) as conn:
131131
query = f"SHOW USER FUNCTIONS LIKE 'FEAST_{project.upper()}%' IN SCHEMA {stage_context}"
132132
cursor = execute_snowflake_statement(conn, query)
133-
stage_list = pd.DataFrame(
133+
function_list = pd.DataFrame(
134134
cursor.fetchall(),
135135
columns=[column.name for column in cursor.description],
136136
)
137137

138138
# if the SHOW FUNCTIONS query returns results,
139139
# assumes that the materialization functions have been deployed
140-
if len(stage_list.index) > 0:
140+
if len(function_list.index) > 0:
141141
click.echo(
142142
f"Materialization functions for {Style.BRIGHT + Fore.GREEN}{project}{Style.RESET_ALL} already detected."
143143
)

0 commit comments

Comments
 (0)