ClickHouse/tests/queries/0_stateless/00688_low_cardinality_defaults.sql

5 lines
306 B
MySQL
Raw Normal View History

2018-08-08 16:26:34 +00:00
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);