mirror of
https://github.com/Kaelio/ktx.git
synced 2026-06-10 08:05:14 +02:00
fix(sl): tighten source validation guards
This commit is contained in:
parent
aaa928e768
commit
7a86aa9ddc
4 changed files with 105 additions and 3 deletions
|
|
@ -210,8 +210,6 @@ class SemanticEngine:
|
|||
grain = grain_col.lower()
|
||||
if grain in source_columns:
|
||||
return True
|
||||
if any(col.endswith(f"_{grain}") for col in source_columns):
|
||||
return True
|
||||
if grain == "id":
|
||||
candidates = {
|
||||
f"{target_name}_id",
|
||||
|
|
@ -219,6 +217,9 @@ class SemanticEngine:
|
|||
}
|
||||
if source_columns.intersection(candidates):
|
||||
return True
|
||||
continue
|
||||
if any(col.endswith(f"_{grain}") for col in source_columns):
|
||||
return True
|
||||
return False
|
||||
|
||||
def _check_sql_join_coverage(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue