From 2b42458a5c8e5941c829643f36c17e874946eff6 Mon Sep 17 00:00:00 2001 From: Chen Xu Date: Sat, 8 Oct 2022 17:49:11 +0800 Subject: [PATCH] #492 fix, fail only if different sources have same name --- feathr_project/feathr/client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/feathr_project/feathr/client.py b/feathr_project/feathr/client.py index f21d37d23..759a33365 100644 --- a/feathr_project/feathr/client.py +++ b/feathr_project/feathr/client.py @@ -216,7 +216,7 @@ def build_features(self, anchor_list: List[FeatureAnchor] = [], derived_feature_ f"definitions. Anchor name of {anchor} is already defined in {anchor_names[anchor.name]}") else: anchor_names[anchor.name] = anchor - if anchor.source.name in source_names: + if anchor.source.name in source_names and (anchor.source is not source_names[anchor.source.name]): raise RuntimeError(f"Source name should be unique but there are duplicate source names in your source " f"definitions. Source name of {anchor.source} is already defined in {source_names[anchor.source.name]}") else: