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 <[email protected]>
  • Loading branch information
floOnfido authored and adchia committed Aug 10, 2022
1 parent 56d645c commit 67af727
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sdk/python/feast/infra/offline_stores/snowflake.py
Original file line number Diff line number Diff line change
Expand Up @@ -415,7 +415,7 @@ def _to_arrow_internal(self) -> pa.Table:

def to_snowflake(self, table_name: str) -> 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 67af727

Please sign in to comment.