Skip to content

Commit

Permalink
fix: Check if on_demand_feature_views is an empty list rather than No…
Browse files Browse the repository at this point in the history
…ne for snowflake provider (#3046)

check if on_demand_feature_views is empty or None

Signed-off-by: floOnfido <florian.malbranque@onfido.com>
  • Loading branch information
floOnfido committed Aug 10, 2022
1 parent 72cec32 commit 9b05e65
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sdk/python/feast/infra/offline_stores/snowflake.py
Expand Up @@ -429,7 +429,7 @@ def _to_arrow_internal(self) -> pa.Table:

def to_snowflake(self, table_name: str, temporary=False) -> None:
"""Save dataset as a new Snowflake table"""
if self.on_demand_feature_views is not None:
if self.on_demand_feature_views:
transformed_df = self.to_df()

write_pandas(
Expand Down

0 comments on commit 9b05e65

Please sign in to comment.