Skip to content

Commit b76bf4e

Browse files
merging
Signed-off-by: Francisco Javier Arceo <farceo@redhat.com>
1 parent 6d23889 commit b76bf4e

File tree

3 files changed

+3
-11
lines changed

3 files changed

+3
-11
lines changed

sdk/python/feast/feature_store.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -608,6 +608,8 @@ def _make_inferences(
608608
update_feature_views_with_inferred_features_and_entities(
609609
sfvs_to_update, entities + entities_to_update, self.config
610610
)
611+
# We need to attach the time stamp fields to the underlying data sources
612+
# and cascade the dependencies
611613
update_feature_views_with_inferred_features_and_entities(
612614
odfvs_to_update, entities + entities_to_update, self.config
613615
)

sdk/python/feast/inference.py

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -162,13 +162,8 @@ def update_feature_views_with_inferred_features_and_entities(
162162

163163
# Infer a dummy entity column for entityless feature views.
164164
if (
165-
<<<<<<< HEAD
166165
len(fv_entities) == 1
167166
and fv_entities[0] == DUMMY_ENTITY_NAME
168-
=======
169-
len(fv.entities) == 1
170-
and fv.entities[0] == DUMMY_ENTITY_NAME
171-
>>>>>>> 743ae513 (storing current progress...things are getting overriden in the _infer_features_and_entities() method in FeatureStore...that is another thing we have to chnage)
172167
and not entity_columns
173168
):
174169
entity_columns.append(Field(name=DUMMY_ENTITY_ID, dtype=String))
@@ -210,15 +205,12 @@ def _infer_features_and_entities(
210205
run_inference_for_features: Whether to run inference for features.
211206
config: The config for the current feature store.
212207
"""
213-
<<<<<<< HEAD
214208
if isinstance(fv, OnDemandFeatureView):
215209
return _infer_on_demand_features_and_entities(
216210
fv, join_keys, run_inference_for_features, config
217211
)
218212

219-
=======
220213
entity_columns = []
221-
>>>>>>> 743ae513 (storing current progress...things are getting overriden in the _infer_features_and_entities() method in FeatureStore...that is another thing we have to chnage)
222214
columns_to_exclude = {
223215
fv.batch_source.timestamp_field,
224216
fv.batch_source.created_timestamp_column,
@@ -266,7 +258,6 @@ def _infer_features_and_entities(
266258
if field.name not in [feature.name for feature in fv.features]:
267259
fv.features.append(field)
268260

269-
<<<<<<< HEAD
270261

271262
def _infer_on_demand_features_and_entities(
272263
fv: OnDemandFeatureView,
@@ -342,6 +333,4 @@ def _infer_on_demand_features_and_entities(
342333
feature.name for feature in source_feature_view.features
343334
]:
344335
source_feature_view.features.append(field)
345-
=======
346-
>>>>>>> 743ae513 (storing current progress...things are getting overriden in the _infer_features_and_entities() method in FeatureStore...that is another thing we have to chnage)
347336
fv.entity_columns = entity_columns

sdk/python/feast/on_demand_feature_view.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,7 @@ def __init__( # noqa: C901
162162
self.source_request_sources[odfv_source.name] = odfv_source
163163
elif isinstance(odfv_source, FeatureViewProjection):
164164
self.source_feature_view_projections[odfv_source.name] = odfv_source
165+
165166
else:
166167
self.source_feature_view_projections[odfv_source.name] = (
167168
odfv_source.projection

0 commit comments

Comments
 (0)