Added a test

This commit is contained in:
Alexey Milovidov 2020-07-05 03:28:48 +03:00
parent 73a5c38398
commit 63a88de161
2 changed files with 11 additions and 0 deletions

View File

@ -0,0 +1,6 @@
0
0
0
1
3
5

View File

@ -0,0 +1,5 @@
select intDiv(materialize(toInt32(1)), 0x100000000);
select intDiv(materialize(toInt32(1)), -0x100000000);
select intDiv(materialize(toInt32(1)), -9223372036854775808);
select materialize(toInt32(1)) % -9223372036854775808;
select value % -9223372036854775808 from (select toInt32(arrayJoin([3, 5])) value);