Skip to content

Commit d600ed1

Browse files
committed
ref
1 parent 7cd5858 commit d600ed1

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

python/xorq/common/utils/feast_replication_utils.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -382,7 +382,10 @@ def group_features(store, feature_names):
382382
import feast
383383

384384
splat = tuple(feature_name.split(":") for feature_name in feature_names)
385-
assert (2,) == tuple(set(map(len, splat)))
385+
if bad_feature_splats := tuple(el for el in splat if len(splat) != 2):
386+
raise ValueError(
387+
f"got invalid feature names: {tuple(':'.join(el) for el in bad_feature_splats)}"
388+
)
386389
name_to_use_to_view = {
387390
view.projection.name_to_use(): view
388391
for view in store.store.list_all_feature_views()

0 commit comments

Comments
 (0)