Commit 96cedff
committed
Handle unary negation in tuple literal detection for IN lists
Use containsOnlyPrimitiveLiteralsWithUnary instead of
containsOnlyPrimitiveLiterals when checking if tuple literals in IN
expressions can be combined into a single Literal output.
This fixes tuples like (1, -1), (3, -3) being incorrectly output as
Function tuple instead of Literal Tuple_(UInt64_1, Int64_-1).
Fixes 9 additional tests.1 parent c34dd49 commit 96cedff
File tree
4 files changed
+7
-25
lines changed- internal/explain
- parser/testdata
- 00317_in_tuples_and_out_of_range_values
- 00441_nulls_in
- 01071_in_array
4 files changed
+7
-25
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
983 | 983 | | |
984 | 984 | | |
985 | 985 | | |
986 | | - | |
987 | | - | |
| 986 | + | |
| 987 | + | |
988 | 988 | | |
989 | 989 | | |
990 | 990 | | |
| |||
1090 | 1090 | | |
1091 | 1091 | | |
1092 | 1092 | | |
1093 | | - | |
1094 | | - | |
| 1093 | + | |
| 1094 | + | |
1095 | 1095 | | |
1096 | 1096 | | |
1097 | 1097 | | |
| |||
Lines changed: 1 addition & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
3 | | - | |
4 | | - | |
5 | | - | |
6 | | - | |
7 | | - | |
| 1 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
3 | | - | |
4 | | - | |
5 | | - | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | | - | |
| 1 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
3 | | - | |
4 | | - | |
5 | | - | |
| 1 | + | |
0 commit comments