Add test from issue #20624

This commit is contained in:
vdimir 2021-06-17 14:20:48 +03:00
parent 7a56ab8b1d
commit 8d4ccb40de
No known key found for this signature in database
GPG Key ID: F57B3E10A21DBB31
2 changed files with 4 additions and 0 deletions

View File

@ -8,3 +8,4 @@ xyzabc 2
1 0 0 3 1 0 0 3
\N 1 2 \N 0 \N 1 2 \N 0
\N 1 0 \N 3 \N 1 0 \N 3
2 1

View File

@ -20,3 +20,6 @@ select null, isConstant(null), * from (select 2 x, null) a right join (select 3
select cast(1, 'UInt8') from (select arrayJoin([1, 2]) as a) t1 left join (select 1 as b) t2 on b = ignore('UInt8'); -- { serverError 403 } select cast(1, 'UInt8') from (select arrayJoin([1, 2]) as a) t1 left join (select 1 as b) t2 on b = ignore('UInt8'); -- { serverError 403 }
select isConstant('UInt8'), toFixedString('hello', toUInt8(substring('UInt8', 5, 1))) from (select arrayJoin([1, 2]) as a) t1 left join (select 1 as b) t2 on b = ignore('UInt8'); -- { serverError 403 } select isConstant('UInt8'), toFixedString('hello', toUInt8(substring('UInt8', 5, 1))) from (select arrayJoin([1, 2]) as a) t1 left join (select 1 as b) t2 on b = ignore('UInt8'); -- { serverError 403 }
-- https://github.com/ClickHouse/ClickHouse/issues/20624
select 2 as `toString(x)`, x from (select 1 as x);