Update tests

This commit is contained in:
Pavel Kruglov 2021-08-13 14:55:33 +03:00
parent 36bea6abb4
commit aa8b52fe58
3 changed files with 8 additions and 0 deletions

View File

@ -25,4 +25,5 @@
<query>SELECT if(number % 2, arraySum(bitPositionsToArray(number)), arraySum(bitPositionsToArray(number + 1))) FROM numbers(10000000) FORMAT Null</query>
<query>SELECT if(number % 5 == 0, arraySum(bitPositionsToArray(number)), 0) from numbers(10000000) FORMAT Null</query>
<query>SELECT if(number % 2, number + intDiv(number, number + 1), 3 + intDiv(number, number + 1)), if(number % 3 = 0, number, 4 + intDiv(number, number + 1)) FROM numbers(10000000) FORMAT Null</query>
<query>SELECT if(number % 5 == 0, toInt8OrZero(toString(number)), Null) FROM numbers(100000000) FORMAT Null</query>
</test>

View File

@ -1390,3 +1390,8 @@ Decimal32
21
14
10
0.00
42.00
21.00
14.00
10.50

View File

@ -121,3 +121,5 @@ select if(number > 0, intDiv(42, number), 1) from numbers(5);
select if(number > 0, intDiv(42, number), 1) from numbers(5);
select if(number > 0, intDiv(42, number), 1) from numbers(5);
select if(number > 0, intDiv(42, number), 1) from numbers(5);
select if(number > 0, 42 / toDecimal32(number, 2), 0) from numbers(5);