Skip to content

Commit a63d440

Browse files
fix: Update snowflake materialization messages (#3230)
Signed-off-by: miles.adkins <miles.adkins@snowflake.com> Signed-off-by: miles.adkins <miles.adkins@snowflake.com>
1 parent 769c318 commit a63d440

File tree

1 file changed

+5
-9
lines changed

1 file changed

+5
-9
lines changed

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

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -118,11 +118,6 @@ def update(
118118
entities_to_delete: Sequence[Entity],
119119
entities_to_keep: Sequence[Entity],
120120
):
121-
click.echo(
122-
f"Deploying materialization functions for {Style.BRIGHT + Fore.GREEN}{project}{Style.RESET_ALL}"
123-
)
124-
click.echo()
125-
126121
stage_context = f'"{self.repo_config.batch_engine.database}"."{self.repo_config.batch_engine.schema_}"'
127122
stage_path = f'{stage_context}."feast_{project}"'
128123
with get_snowflake_conn(self.repo_config.batch_engine) as conn:
@@ -136,12 +131,13 @@ def update(
136131
# if the stage already exists,
137132
# assumes that the materialization functions have been deployed
138133
if f"feast_{project}" in stage_list["name"].tolist():
139-
click.echo(
140-
f"Materialization functions for {Style.BRIGHT + Fore.GREEN}{project}{Style.RESET_ALL} already exists"
141-
)
142-
click.echo()
143134
return None
144135

136+
click.echo(
137+
f"Deploying materialization functions for {Style.BRIGHT + Fore.GREEN}{project}{Style.RESET_ALL}"
138+
)
139+
click.echo()
140+
145141
query = f"CREATE STAGE {stage_path}"
146142
execute_snowflake_statement(conn, query)
147143

0 commit comments

Comments
 (0)