Merge pull request #25409 from vdimir/issue-20624

Add test from issue #20624
This commit is contained in:
alexey-milovidov 2021-06-18 01:52:12 +03:00 committed by GitHub
commit 85c64346d9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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);