Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
added Redshift typecheck to data_source event_timestamp_col inference
Signed-off-by: Shai Bruhis <shaibruhis@gmail.com>
  • Loading branch information
shaibruhis committed Mar 12, 2022
commit 68f6e5e738f82876ada2dd7688d011765a88057e
7 changes: 4 additions & 3 deletions sdk/python/feast/inference.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def update_entities_with_inferred_types_from_feature_views(

# get entity information from information extracted from the view batch source
extracted_entity_name_type_pairs = list(
filter(lambda tup: tup[0] == entity.join_key, col_names_and_types,)
filter(lambda tup: tup[0] == entity.join_key,col_names_and_types,)
Comment thread
adchia marked this conversation as resolved.
Outdated
)
if len(extracted_entity_name_type_pairs) == 0:
# Doesn't mention inference error because would also be an error without inferencing
Expand All @@ -54,8 +54,8 @@ def update_entities_with_inferred_types_from_feature_views(
its entity's name."""
)

inferred_value_type = view.batch_source.source_datatype_to_feast_value_type()(
extracted_entity_name_type_pairs[0][1]
inferred_value_type = (
view.batch_source.source_datatype_to_feast_value_type()(extracted_entity_name_type_pairs[0][1])
)

if (
Expand Down Expand Up @@ -111,6 +111,7 @@ def update_data_sources_with_inferred_event_timestamp_col(
assert (
isinstance(data_source, FileSource)
or isinstance(data_source, BigQuerySource)
or isinstance(data_source, RedshiftSource)
Comment thread
adchia marked this conversation as resolved.
Outdated
or isinstance(data_source, SnowflakeSource)
)

Expand Down