Skip to content

Commit

Permalink
Refactor stage_list to function_list
Browse files Browse the repository at this point in the history
  • Loading branch information
benchoncy committed Aug 27, 2024
1 parent 8ef70ca commit 74ae86b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sdk/python/feast/infra/materialization/snowflake_engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,14 +130,14 @@ def update(
with GetSnowflakeConnection(self.repo_config.batch_engine) as conn:
query = f"SHOW USER FUNCTIONS LIKE 'FEAST_{project.upper()}%' IN SCHEMA {stage_context}"
cursor = execute_snowflake_statement(conn, query)
stage_list = pd.DataFrame(
function_list = pd.DataFrame(
cursor.fetchall(),
columns=[column.name for column in cursor.description],
)

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

0 comments on commit 74ae86b

Please sign in to comment.