Skip to content

Commit 6faabfb

Browse files
committed
feat: Graduate write_to_online_store out of experimental status
Signed-off-by: Achal Shah <achals@gmail.com>
1 parent 04dea73 commit 6faabfb

File tree

4 files changed

+8
-12
lines changed

4 files changed

+8
-12
lines changed

sdk/python/feast/feature_store.py

-5
Original file line numberDiff line numberDiff 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

sdk/python/feast/flags.py

-2
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
11
FLAG_ALPHA_FEATURES_NAME = "alpha_features"
22
FLAG_ON_DEMAND_TRANSFORM_NAME = "on_demand_transforms"
33
FLAG_AWS_LAMBDA_FEATURE_SERVER_NAME = "aws_lambda_feature_server"
4-
FLAG_DIRECT_INGEST_TO_ONLINE_STORE = "direct_ingest_to_online_store"
54
ENV_FLAG_IS_TEST = "IS_TEST"
65

76
FLAG_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
}

sdk/python/feast/flags_helper.py

-4
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,3 @@ def enable_on_demand_feature_views(repo_config: RepoConfig) -> bool:
3737

3838
def 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)

sdk/python/feast/repo_config.py

+8-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import logging
12
import os
23
from pathlib import Path
34
from typing import Any
@@ -23,6 +24,8 @@
2324
from feast.importer import import_class
2425
from 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

0 commit comments

Comments
 (0)