mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-03 13:02:00 +00:00
Added a test
This commit is contained in:
parent
ec4889e43e
commit
66d9ba9389
2
tests/queries/0_stateless/01120_join_constants.reference
Normal file
2
tests/queries/0_stateless/01120_join_constants.reference
Normal file
@ -0,0 +1,2 @@
|
||||
1 hello 1 world world 1
|
||||
2 hello 0 world 1
|
17
tests/queries/0_stateless/01120_join_constants.sql
Normal file
17
tests/queries/0_stateless/01120_join_constants.sql
Normal file
@ -0,0 +1,17 @@
|
||||
SELECT
|
||||
t1.*,
|
||||
t2.*,
|
||||
'world',
|
||||
isConstant('world')
|
||||
FROM
|
||||
(
|
||||
SELECT
|
||||
arrayJoin([1, 2]) AS k,
|
||||
'hello'
|
||||
) AS t1
|
||||
LEFT JOIN
|
||||
(
|
||||
SELECT
|
||||
arrayJoin([1, 3]) AS k,
|
||||
'world'
|
||||
) AS t2 ON t1.k = t2.k;
|
Loading…
Reference in New Issue
Block a user