Added test for LowCardinality defaults

This commit is contained in:
Nikolai Kochetov 2018-08-08 19:26:34 +03:00
parent c339313d8b
commit dc828d462c
2 changed files with 8 additions and 0 deletions

View File

@ -0,0 +1,4 @@
1
1
0
1

View File

@ -0,0 +1,4 @@
select CAST(toLowCardinality(val) as UInt64) from (select arrayJoin(['1']) as val);
select toUInt64(toLowCardinality(val)) from (select arrayJoin(['1']) as val);
select 1 % toLowCardinality(val) from (select arrayJoin([1]) as val);
select gcd(1, toLowCardinality(val)) from (select arrayJoin([1]) as val);