Commit 0d45aba
committed
Add implicit NULL in CASE WHEN without ELSE clause
CASE expressions without an explicit ELSE clause implicitly return NULL.
Update the explain output to always include this implicit NULL value,
matching ClickHouse's EXPLAIN AST format.
Fixes 4 statements in 4 tests.1 parent 7baa9ea commit 0d45aba
5 files changed
Lines changed: 9 additions & 20 deletions
File tree
- internal/explain
- parser/testdata
- 00395_nullable
- 00688_case_without_else
- 02346_text_index_function_hasAnyAllTokens
- 02901_remove_nullable_crash_analyzer
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
836 | 836 | | |
837 | 837 | | |
838 | 838 | | |
839 | | - | |
840 | | - | |
841 | | - | |
842 | | - | |
| 839 | + | |
| 840 | + | |
843 | 841 | | |
844 | 842 | | |
845 | 843 | | |
| |||
852 | 850 | | |
853 | 851 | | |
854 | 852 | | |
| 853 | + | |
| 854 | + | |
| 855 | + | |
855 | 856 | | |
856 | 857 | | |
857 | 858 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
3 | | - | |
4 | | - | |
5 | | - | |
| 1 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
Lines changed: 1 addition & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
3 | | - | |
4 | | - | |
5 | | - | |
| 1 | + | |
Lines changed: 1 addition & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
3 | | - | |
4 | | - | |
5 | | - | |
| 1 | + | |
0 commit comments