Commit 6faabfb 1 parent 04dea73 commit 6faabfb Copy full SHA for 6faabfb
File tree 4 files changed +8
-12
lines changed
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(
1159
1159
"""
1160
1160
ingests data directly into the Online store
1161
1161
"""
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
-
1167
1162
# TODO: restrict this to work with online StreamFeatureViews and validate the FeatureView type
1168
1163
feature_view = self ._registry .get_feature_view (
1169
1164
feature_view_name , self .project , allow_cache = allow_registry_cache
Original file line number Diff line number Diff line change 1
1
FLAG_ALPHA_FEATURES_NAME = "alpha_features"
2
2
FLAG_ON_DEMAND_TRANSFORM_NAME = "on_demand_transforms"
3
3
FLAG_AWS_LAMBDA_FEATURE_SERVER_NAME = "aws_lambda_feature_server"
4
- FLAG_DIRECT_INGEST_TO_ONLINE_STORE = "direct_ingest_to_online_store"
5
4
ENV_FLAG_IS_TEST = "IS_TEST"
6
5
7
6
FLAG_NAMES = {
8
7
FLAG_ALPHA_FEATURES_NAME ,
9
8
FLAG_ON_DEMAND_TRANSFORM_NAME ,
10
9
FLAG_AWS_LAMBDA_FEATURE_SERVER_NAME ,
11
- FLAG_DIRECT_INGEST_TO_ONLINE_STORE ,
12
10
}
Original file line number Diff line number Diff line change @@ -37,7 +37,3 @@ def enable_on_demand_feature_views(repo_config: RepoConfig) -> bool:
37
37
38
38
def enable_aws_lambda_feature_server (repo_config : RepoConfig ) -> bool :
39
39
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
1
2
import os
2
3
from pathlib import Path
3
4
from typing import Any
23
24
from feast .importer import import_class
24
25
from feast .usage import log_exceptions
25
26
27
+ _logger = logging .getLogger (__name__ )
28
+
26
29
# These dict exists so that:
27
30
# - existing values for the online store type in featurestore.yaml files continue to work in a backwards compatible way
28
31
# - first party and third party implementations can use the same class loading code path.
@@ -278,7 +281,11 @@ def _validate_flags(cls, v):
278
281
279
282
for flag_name , val in v .items ():
280
283
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
+ )
282
289
if type (val ) is not bool :
283
290
raise ValueError (f"Flag value, { val } , not valid." )
284
291
You can’t perform that action at this time.
0 commit comments