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
Union with conflicting metadata fails as logical/physical stages merge it differently #26880
When union fields have metadata, the physical and logical layer merge them in different ways, which might result in different schemas.
To Reproduce
SELECT with_metadata(1, 'id', '1') UNION SELECT with_metadata(NULL, 'id', '2');
returns:
Internal error: Physical input schema should be the same as the one converted from logical input schema. Differences:
- field metadata at index 0 [with_metadata(Int64(1),Utf8("id"),Utf8("1"))]: (physical) {"id": "1"} vs (logical) {"id": "2"}.
Expected behavior
field metadata merging should be uniform and return the expected results.
Activity
AdamGS commentedon Oct 29, 2026
take
fix: Unify schema metadata merge logic in unions to "last one wins" (a…