You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 0a86a2d
Browse filesBrowse the repository at this point in the historyBrowse files
fix(lineage): give a merged column its strongest branch's transform kind
A column merged from alternative branches (a set operation, a VALUES
column, an UNPIVOT value) now takes the most significant kind among the
branches that read a column or aggregate, when every branch's type is
known, instead of becoming an expression whenever it reads more than one
column. A constant branch is no step, so branches that each pass a column
through are direct, with all their sources. A computed branch still
outranks a cast. When a branch's type is unknown, the merge stays an
expression unless it passes one column through, as before.
A branch that reads a column counts as a cast when the dialect converts
its value on the merge, and so does EXCEPT's left column when the right
side converts it. Type spellings that name one type, such as INT4 and
INTEGER on DuckDB, are no conversion, and neither is dropping a type's
modifiers. On SQLite, integers merged into a REAL column are a cast, as a
compound read through a subquery gives every branch its leftmost
column's affinity.
No existing lineage test expectation changes.
0 commit comments