add test for LowCardinality

This commit is contained in:
kevinyhzou 2024-11-19 11:48:58 +08:00
parent c3e5708606
commit ddd468814f
2 changed files with 4 additions and 4 deletions

View File

@ -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

View File

@ -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);