Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Backport #49844 to 23.4: TYPE_MISMATCH exception for in operator with…
… single column tuples.
- Loading branch information
1 parent
fc20f2d
commit d291065
Showing
3 changed files
with
13 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 2 additions & 0 deletions
2
tests/queries/0_stateless/02731_in_operator_with_one_size_tuple.reference
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
2023-04-17 1 | ||
2023-04-17 1 |
10 changes: 10 additions & 0 deletions
10
tests/queries/0_stateless/02731_in_operator_with_one_size_tuple.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
CREATE TABLE test(`report_date` Date, `sspid` UInt64) ENGINE MergeTree PARTITION BY report_date ORDER BY report_date; | ||
|
||
INSERT INTO test SELECT toDate('2023-04-20'), 0; | ||
INSERT INTO test SELECT toDate('2023-04-19'), 0; | ||
INSERT INTO test SELECT toDate('2023-04-17'), 1; | ||
INSERT INTO test SELECT toDate('2023-04-17'), 1; | ||
|
||
|
||
SELECT * FROM test WHERE tuple(report_date) IN tuple(toDate('2023-04-17')); | ||
DROP TABLE test; |