ClickHouse/tests/queries/0_stateless/02315_pmj_union_ubsan_35857.sql
2023-08-04 14:09:59 +03:00

24 lines
295 B
SQL

SET join_algorithm = 'partial_merge';
SELECT NULL
FROM
(
SELECT
NULL,
1 AS a,
0 :: Nullable(UInt8) AS c
UNION ALL
SELECT
NULL,
65536,
NULL
) AS js1
ALL LEFT JOIN
(
SELECT 2 :: Nullable(UInt8) AS a
) AS js2
USING (a)
ORDER BY c
;