mirror of
https://github.com/Kaelio/ktx.git
synced 2026-06-07 07:55:13 +02:00
fix: restore overlay collision guidance
This commit is contained in:
parent
cc071f45b7
commit
83264c3ff1
1 changed files with 3 additions and 2 deletions
|
|
@ -195,12 +195,13 @@ class SourceLoader:
|
|||
columns_by_name[name] = SourceColumn(**merged)
|
||||
source.columns = list(columns_by_name.values())
|
||||
|
||||
# Append computed columns. Manifest column names cannot be reused here.
|
||||
# Append computed columns. Manifest column names cannot be reused here;
|
||||
# use column_overrides for metadata patches.
|
||||
for col in overlay.get("columns", []):
|
||||
name = col.get("name")
|
||||
if name in base_by_name:
|
||||
raise ValueError(
|
||||
f"column '{name}' in columns already exists on manifest source '{base.name}'"
|
||||
f"column '{name}' in columns patches a manifest column on '{base.name}' - move it to 'column_overrides:'"
|
||||
)
|
||||
source.columns.append(SourceColumn(**col))
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue