File tree Expand file tree Collapse file tree 4 files changed +8
-12
lines changed
Expand file tree Collapse file tree 4 files changed +8
-12
lines changed Original file line number Diff line number Diff line change @@ -1159,11 +1159,6 @@ def write_to_online_store(
11591159 """
11601160 ingests data directly into the Online store
11611161 """
1162- if not flags_helper .enable_direct_ingestion_to_online_store (self .config ):
1163- raise ExperimentalFeatureNotEnabled (
1164- flags .FLAG_DIRECT_INGEST_TO_ONLINE_STORE
1165- )
1166-
11671162 # TODO: restrict this to work with online StreamFeatureViews and validate the FeatureView type
11681163 feature_view = self ._registry .get_feature_view (
11691164 feature_view_name , self .project , allow_cache = allow_registry_cache
Original file line number Diff line number Diff line change 11FLAG_ALPHA_FEATURES_NAME = "alpha_features"
22FLAG_ON_DEMAND_TRANSFORM_NAME = "on_demand_transforms"
33FLAG_AWS_LAMBDA_FEATURE_SERVER_NAME = "aws_lambda_feature_server"
4- FLAG_DIRECT_INGEST_TO_ONLINE_STORE = "direct_ingest_to_online_store"
54ENV_FLAG_IS_TEST = "IS_TEST"
65
76FLAG_NAMES = {
87 FLAG_ALPHA_FEATURES_NAME ,
98 FLAG_ON_DEMAND_TRANSFORM_NAME ,
109 FLAG_AWS_LAMBDA_FEATURE_SERVER_NAME ,
11- FLAG_DIRECT_INGEST_TO_ONLINE_STORE ,
1210}
Original file line number Diff line number Diff line change @@ -37,7 +37,3 @@ def enable_on_demand_feature_views(repo_config: RepoConfig) -> bool:
3737
3838def enable_aws_lambda_feature_server (repo_config : RepoConfig ) -> bool :
3939 return feature_flag_enabled (repo_config , flags .FLAG_AWS_LAMBDA_FEATURE_SERVER_NAME )
40-
41-
42- def enable_direct_ingestion_to_online_store (repo_config : RepoConfig ) -> bool :
43- return feature_flag_enabled (repo_config , flags .FLAG_DIRECT_INGEST_TO_ONLINE_STORE )
Original file line number Diff line number Diff line change 1+ import logging
12import os
23from pathlib import Path
34from typing import Any
2324from feast .importer import import_class
2425from feast .usage import log_exceptions
2526
27+ _logger = logging .getLogger (__name__ )
28+
2629# These dict exists so that:
2730# - existing values for the online store type in featurestore.yaml files continue to work in a backwards compatible way
2831# - first party and third party implementations can use the same class loading code path.
@@ -278,7 +281,11 @@ def _validate_flags(cls, v):
278281
279282 for flag_name , val in v .items ():
280283 if flag_name not in flags .FLAG_NAMES :
281- raise ValueError (f"Flag name, { flag_name } , not valid." )
284+ _logger .warn (
285+ "Unrecognized flag: %s. This feature may be invalid, or may refer "
286+ "to a previously experimental feature which has graduated to production." ,
287+ flag_name ,
288+ )
282289 if type (val ) is not bool :
283290 raise ValueError (f"Flag value, { val } , not valid." )
284291
You can’t perform that action at this time.
0 commit comments