Commit c1b9f70
committed
fix: implement Spark-compatible null handling for arrays_overlap
Replace DataFusion's array_has_any (which treats NULL == NULL) with a
custom implementation that follows Spark's three-valued logic:
- true when arrays share a common non-null element
- null when no common non-null elements but either array has nulls
- false when no common elements and no nulls
Closes #36451 parent d9ed85f commit c1b9f70
6 files changed
Lines changed: 432 additions & 3 deletions
File tree
- docs/source/user-guide/latest
- native/spark-expr/src
- array_funcs
- spark/src/test/resources/sql-tests/expressions/array
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
61 | 73 | | |
62 | 74 | | |
63 | 75 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
245 | 245 | | |
246 | 246 | | |
247 | 247 | | |
248 | | - | |
| 248 | + | |
249 | 249 | | |
250 | 250 | | |
251 | 251 | | |
| |||
0 commit comments