2020-04-12 16:24:16 +00:00
|
|
|
SELECT
|
|
|
|
t1.*,
|
|
|
|
t2.*,
|
2023-02-20 18:26:39 +00:00
|
|
|
'world' AS constant,
|
2020-04-12 16:24:16 +00:00
|
|
|
isConstant('world')
|
|
|
|
FROM
|
|
|
|
(
|
|
|
|
SELECT
|
|
|
|
arrayJoin([1, 2]) AS k,
|
|
|
|
'hello'
|
|
|
|
) AS t1
|
|
|
|
LEFT JOIN
|
|
|
|
(
|
|
|
|
SELECT
|
|
|
|
arrayJoin([1, 3]) AS k,
|
|
|
|
'world'
|
2022-06-17 23:15:08 +00:00
|
|
|
) AS t2 ON t1.k = t2.k ORDER BY t1.k;
|
2021-10-15 10:53:25 +00:00
|
|
|
|
|
|
|
SELECT
|
|
|
|
t1.*,
|
|
|
|
t2.*,
|
2023-02-20 18:26:39 +00:00
|
|
|
123 AS constant,
|
2021-10-15 10:53:25 +00:00
|
|
|
isConstant('world')
|
|
|
|
FROM
|
|
|
|
(
|
|
|
|
SELECT
|
|
|
|
arrayJoin([1, 2]) AS k,
|
|
|
|
321
|
|
|
|
) AS t1
|
|
|
|
LEFT JOIN
|
|
|
|
(
|
|
|
|
SELECT
|
|
|
|
arrayJoin([1, 3]) AS k,
|
|
|
|
123
|
2022-06-17 23:15:08 +00:00
|
|
|
) AS t2 ON t1.k = t2.k ORDER BY t1.k;
|