-
Notifications
You must be signed in to change notification settings - Fork 6.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #60837 from ClickHouse/backport/23.8/60765
Backport #60765 to 23.8: Fix crash when using input() in INSERT SELECT JOIN
- Loading branch information
Showing
3 changed files
with
16 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
1 change: 1 addition & 0 deletions
1
tests/queries/0_stateless/03005_input_function_in_join.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 |
14 changes: 14 additions & 0 deletions
14
tests/queries/0_stateless/03005_input_function_in_join.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,14 @@ | ||
drop table if exists test; | ||
create table test (a Int8) engine = MergeTree order by tuple(); | ||
INSERT INTO test | ||
SELECT x.number FROM ( | ||
SELECT number | ||
FROM system.numbers | ||
LIMIT 10 | ||
) AS x | ||
INNER JOIN input('a UInt64') AS y ON x.number = y.a | ||
Format CSV 2 | ||
; | ||
select * from test; | ||
drop table test; | ||
|