Commit 5f180c5
Fix CDatumSortedSet handling of empty arrays causing errors in ORCA
Previously, when constructing CDatumSortedSet from an array expression with all
NULL elements, the aprngdatum was becoming an empty array. This caused unexpected
errors that could lead to ORCA fallback to the planner, or even coredump.
The bug has been fixed by ensuring that no unnecessary operations are performed on
the empty aprngdatum array.1 parent a099d24 commit 5f180c5
4 files changed
Lines changed: 37 additions & 0 deletions
File tree
- src
- backend/gporca/libgpopt/src/base
- test/regress
- expected
- sql
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
39 | 45 | | |
40 | 46 | | |
41 | 47 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14328 | 14328 | | |
14329 | 14329 | | |
14330 | 14330 | | |
| 14331 | + | |
| 14332 | + | |
| 14333 | + | |
| 14334 | + | |
| 14335 | + | |
| 14336 | + | |
| 14337 | + | |
| 14338 | + | |
| 14339 | + | |
| 14340 | + | |
| 14341 | + | |
| 14342 | + | |
| 14343 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14671 | 14671 | | |
14672 | 14672 | | |
14673 | 14673 | | |
| 14674 | + | |
| 14675 | + | |
| 14676 | + | |
| 14677 | + | |
| 14678 | + | |
| 14679 | + | |
| 14680 | + | |
| 14681 | + | |
| 14682 | + | |
| 14683 | + | |
| 14684 | + | |
| 14685 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3518 | 3518 | | |
3519 | 3519 | | |
3520 | 3520 | | |
| 3521 | + | |
| 3522 | + | |
| 3523 | + | |
| 3524 | + | |
| 3525 | + | |
| 3526 | + | |
3521 | 3527 | | |
3522 | 3528 | | |
3523 | 3529 | | |
0 commit comments