Commit 418f62a
authored
fix: NULL handling in arrow_intersect and arrow_union (#19415)
## Which issue does this PR close?
- Closes #9706
## Rationale for this change
Mentioned in issue.
## What changes are included in this PR?
`RowConverter` API seems to have changed since initial implementation.
Columns needs to be exactly same as schema passed in, so when we were
handling case of `l_values` or `r_values` being `None`, us passing empty
columns was causing an assert to fail in `RowConverter`.
## Are these changes tested?
`cargo test --test sqllogictests -- array` passes
For query mentioned in original issue, current result is:
```
> select array_intersect(column1, column2) from array_intersect_table;
+------------------------------------------------------------------------------+
| array_intersect(array_intersect_table.column1,array_intersect_table.column2) |
+------------------------------------------------------------------------------+
| [2, 3] |
| [3] |
| [3] |
| [] |
| [] |
| [] |
+------------------------------------------------------------------------------+
6 row(s) fetched.
Elapsed 0.012 seconds.
```
## Are there any user-facing changes?
No1 parent 45d4948 commit 418f62a
File tree
2 files changed
+47
-4
lines changed- datafusion
- functions-nested/src
- sqllogictest/test_files
2 files changed
+47
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
| 25 | + | |
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| |||
363 | 363 | | |
364 | 364 | | |
365 | 365 | | |
| 366 | + | |
366 | 367 | | |
367 | 368 | | |
| 369 | + | |
| 370 | + | |
368 | 371 | | |
369 | 372 | | |
370 | 373 | | |
371 | | - | |
| 374 | + | |
| 375 | + | |
372 | 376 | | |
373 | 377 | | |
374 | 378 | | |
375 | 379 | | |
376 | 380 | | |
377 | | - | |
| 381 | + | |
| 382 | + | |
378 | 383 | | |
379 | 384 | | |
380 | 385 | | |
| |||
414 | 419 | | |
415 | 420 | | |
416 | 421 | | |
| 422 | + | |
417 | 423 | | |
418 | 424 | | |
419 | 425 | | |
420 | 426 | | |
421 | 427 | | |
422 | 428 | | |
423 | | - | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
424 | 435 | | |
425 | 436 | | |
426 | 437 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
503 | 503 | | |
504 | 504 | | |
505 | 505 | | |
| 506 | + | |
| 507 | + | |
| 508 | + | |
| 509 | + | |
| 510 | + | |
| 511 | + | |
| 512 | + | |
| 513 | + | |
| 514 | + | |
| 515 | + | |
| 516 | + | |
506 | 517 | | |
507 | 518 | | |
508 | 519 | | |
| |||
4816 | 4827 | | |
4817 | 4828 | | |
4818 | 4829 | | |
| 4830 | + | |
| 4831 | + | |
| 4832 | + | |
| 4833 | + | |
| 4834 | + | |
| 4835 | + | |
| 4836 | + | |
| 4837 | + | |
| 4838 | + | |
| 4839 | + | |
4819 | 4840 | | |
4820 | 4841 | | |
4821 | 4842 | | |
| |||
6765 | 6786 | | |
6766 | 6787 | | |
6767 | 6788 | | |
| 6789 | + | |
| 6790 | + | |
| 6791 | + | |
| 6792 | + | |
| 6793 | + | |
| 6794 | + | |
| 6795 | + | |
| 6796 | + | |
| 6797 | + | |
| 6798 | + | |
| 6799 | + | |
6768 | 6800 | | |
6769 | 6801 | | |
6770 | 6802 | | |
| |||
0 commit comments