mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-27 01:51:59 +00:00
add test for LowCardinality
This commit is contained in:
parent
c3e5708606
commit
ddd468814f
@ -1,7 +1,7 @@
|
||||
\N \N 4 4 2 2 4 2
|
||||
1 1 4 1 2 1 4 1
|
||||
\N \N 4 4 2 2 4 2
|
||||
1 1 4 1 2 1 4 1
|
||||
2 \N \N 4 4 2 2 4 2
|
||||
2 1 1 4 1 2 1 4 1
|
||||
2 1 2 1
|
||||
1 1 2 1
|
||||
\N \N
|
||||
|
@ -2,8 +2,8 @@
|
||||
select greatest(x1, NULL), least(x1, NULL), greatest(x1, toNullable(4)), least(x1,toNullable(4)), greatest(x1, x2), least(x1,x2), greatest(x1, x2, 4), least(x1,x2, 4) from (select materialize(NULL) as x1, materialize(toFloat32(2)) as x2);
|
||||
select greatest(x1, NULL), least(x1, NULL), greatest(x1, toNullable(4)), least(x1,toNullable(4)), greatest(x1, x2), least(x1,x2), greatest(x1, x2, 4), least(x1,x2, 4) from (select materialize(1) as x1, materialize(toFloat32(2)) as x2);
|
||||
|
||||
select greatest(x1, NULL), least(x1, NULL), greatest(x1, toNullable(4)), least(x1,toNullable(4)), greatest(x1, x2), least(x1,x2), greatest(x1, x2, 4), least(x1,x2, 4) from (select materialize(NULL) as x1, materialize(toDecimal32(2, 5)) as x2);
|
||||
select greatest(x1, NULL), least(x1, NULL), greatest(x1, toNullable(4)), least(x1,toNullable(4)), greatest(x1, x2), least(x1,x2), greatest(x1, x2, 4), least(x1,x2, 4) from (select materialize(1) as x1, materialize(toDecimal32(2, 5)) as x2);
|
||||
select greatest(materialize(toLowCardinality(2)), x1), greatest(x1, NULL), least(x1, NULL), greatest(x1, toNullable(4)), least(x1,toNullable(4)), greatest(x1, x2), least(x1,x2), greatest(x1, x2, 4), least(x1,x2, 4) from (select materialize(NULL) as x1, materialize(toDecimal32(2, 5)) as x2);
|
||||
select greatest(materialize(toLowCardinality(2)), x1), greatest(x1, NULL), least(x1, NULL), greatest(x1, toNullable(4)), least(x1,toNullable(4)), greatest(x1, x2), least(x1,x2), greatest(x1, x2, 4), least(x1,x2, 4) from (select materialize(1) as x1, materialize(toDecimal32(2, 5)) as x2);
|
||||
|
||||
select greatest(toNullable(1), 2), least(toNullable(1), 2), greatest(toNullable(1), 2, NULL), least(toNullable(1), 2, NULL);
|
||||
select greatest(1, NULL), least(1, NULL), greatest(1, 2, NULL), least(1, 2, NULL);
|
||||
|
Loading…
Reference in New Issue
Block a user