updated unit and functional tests

This commit is contained in:
root 2022-10-06 07:51:33 -07:00 committed by Yong Wang
parent e32f717700
commit d1f18edd3e
3 changed files with 10 additions and 0 deletions

View File

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

View File

@ -106,6 +106,7 @@ nan
['asd','asd','asd']
[86400,86400,86400]
[true,true,true]
[NULL]
-- set_difference()
[]
[]

View File

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