Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix columns number mismatch in cross join
- Loading branch information
Showing
4 changed files
with
26 additions
and
3 deletions.
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
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/02313_cross_join_dup_col_names.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 @@ | ||
\N | ||
\N |
16 changes: 16 additions & 0 deletions
16
tests/queries/0_stateless/02313_cross_join_dup_col_names.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,16 @@ | ||
-- Tags: no-backward-compatibility-check | ||
|
||
-- https://github.com/ClickHouse/ClickHouse/issues/37561 | ||
|
||
SELECT NULL | ||
FROM | ||
(SELECT NULL) AS s1, | ||
(SELECT count(2), count(1)) AS s2 | ||
; | ||
|
||
SELECT NULL | ||
FROM | ||
(SELECT NULL) AS s1, | ||
(SELECT count(2.), 9223372036854775806, count('-1'), NULL) AS s2, | ||
(SELECT count('-2147483648')) AS any_query, (SELECT NULL) AS check_single_query | ||
; |