mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-18 21:51:57 +00:00
updated unit and functional tests
This commit is contained in:
parent
e32f717700
commit
d1f18edd3e
@ -156,5 +156,13 @@ INSTANTIATE_TEST_SUITE_P(ParserKQLQuery_Dynamic, ParserTest,
|
||||
{
|
||||
"print strlen(A[0])",
|
||||
"SELECT lengthUTF8(A[if(0 >= 0, 0 + 1, 0)])"
|
||||
},
|
||||
{
|
||||
"print repeat(1, 3)",
|
||||
"SELECT if(3 < 0, [NULL], arrayWithConstant(abs(3), 1))"
|
||||
},
|
||||
{
|
||||
"print repeat(1, -3)",
|
||||
"SELECT if(-3 < 0, [NULL], arrayWithConstant(abs(-3), 1))"
|
||||
}
|
||||
})));
|
||||
|
@ -106,6 +106,7 @@ nan
|
||||
['asd','asd','asd']
|
||||
[86400,86400,86400]
|
||||
[true,true,true]
|
||||
[NULL]
|
||||
-- set_difference()
|
||||
[]
|
||||
[]
|
||||
|
@ -108,6 +108,7 @@ print repeat(1, 3);
|
||||
print repeat("asd", 3);
|
||||
print repeat(timespan(1d), 3);
|
||||
print repeat(true, 3);
|
||||
print repeat(1, -3);
|
||||
print '-- set_difference()';
|
||||
print set_difference(dynamic([]), dynamic([]));
|
||||
print set_difference(dynamic([]), dynamic([9]));
|
||||
|
Loading…
Reference in New Issue
Block a user