Repository navigation
Commit ea33b3d
coerce Union vs scalar in comparisons (apache#22825)
- Closes apache#18825
Add a `union_coercion` rule so that comparisons between a Union column
and an opaque scalar pick the scalar type whenever any union variant can
be cast to it. The execution side is already handled by arrow-rs's
`cast(Union -> T)` (arrow 58.3.0+), which extracts values from the
matching variant and emits NULL for rows whose active variant is not
castable to the target
---------
Co-authored-by: Adrian Garcia Badaracco <[email protected]>
Co-authored-by: Claude Opus 4.8 (1M context) <[email protected]>1 parent 45d943d commit ea33b3d
3 files changed
Lines changed: 529 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
| 73 | + | |
73 | 74 | | |
74 | 75 | | |
75 | 76 | | |
| |||
0 commit comments