1616from feast .on_demand_feature_view import OnDemandFeatureView
1717from feast .repo_config import RepoConfig
1818from feast .stream_feature_view import StreamFeatureView
19+ from feast .on_demand_feature_view import OnDemandFeatureView
1920from feast .types import String
2021from feast .value_type import ValueType
2122
@@ -161,8 +162,13 @@ def update_feature_views_with_inferred_features_and_entities(
161162
162163 # Infer a dummy entity column for entityless feature views.
163164 if (
165+ < << << << HEAD
164166 len (fv_entities ) == 1
165167 and fv_entities [0 ] == DUMMY_ENTITY_NAME
168+ == == == =
169+ len (fv .entities ) == 1
170+ and fv .entities [0 ] == DUMMY_ENTITY_NAME
171+ >> >> >> > 743 ae513 (storing current progress ...things are getting overriden in the _infer_features_and_entities () method in FeatureStore ...that is another thing we have to chnage )
166172 and not entity_columns
167173 ):
168174 entity_columns .append (Field (name = DUMMY_ENTITY_ID , dtype = String ))
@@ -204,11 +210,15 @@ def _infer_features_and_entities(
204210 run_inference_for_features: Whether to run inference for features.
205211 config: The config for the current feature store.
206212 """
213+ < << << << HEAD
207214 if isinstance (fv , OnDemandFeatureView ):
208215 return _infer_on_demand_features_and_entities (
209216 fv , join_keys , run_inference_for_features , config
210217 )
211218
219+ == == == =
220+ entity_columns = []
221+ > >> >> >> 743 ae513 (storing current progress ...things are getting overriden in the _infer_features_and_entities () method in FeatureStore ...that is another thing we have to chnage )
212222 columns_to_exclude = {
213223 fv .batch_source .timestamp_field ,
214224 fv .batch_source .created_timestamp_column ,
@@ -233,9 +243,9 @@ def _infer_features_and_entities(
233243 ),
234244 )
235245 if field .name not in [
236- entity_column .name for entity_column in fv . entity_columns
246+ entity_column .name for entity_column in entity_columns
237247 ]:
238- fv . entity_columns .append (field )
248+ entity_columns .append (field )
239249 elif not re .match (
240250 "^__|__$" , col_name
241251 ): # double underscores often signal an internal-use column
@@ -256,6 +266,7 @@ def _infer_features_and_entities(
256266 if field .name not in [feature .name for feature in fv .features ]:
257267 fv .features .append (field )
258268
269+ < << << << HEAD
259270
260271def _infer_on_demand_features_and_entities (
261272 fv : OnDemandFeatureView ,
@@ -331,4 +342,6 @@ def _infer_on_demand_features_and_entities(
331342 feature .name for feature in source_feature_view .features
332343 ]:
333344 source_feature_view .features .append (field )
345+ == == == =
346+ >> >> >> > 743 ae513 (storing current progress ...things are getting overriden in the _infer_features_and_entities () method in FeatureStore ...that is another thing we have to chnage )
334347 fv .entity_columns = entity_columns
0 commit comments