Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions crates/sqllogictest/test_files/array/array_insert.slt
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ SELECT array_insert(make_array(0, NULL, 0), 1, NULL);

# NULL array or NULL position gives NULL
query ?
SELECT array_insert(arrow_cast(NULL, 'List(Int32)'), 1, 5);
SELECT array_insert(NULL::ARRAY<INT>, 1, 5);
----
NULL

Expand Down Expand Up @@ -305,7 +305,7 @@ SELECT array_insert(make_array(make_array(1)), -3, make_array(2));

# The item widens to the common numeric type
query ?
SELECT array_insert(make_array(arrow_cast(1, 'Int32')), 1, arrow_cast(3000000000, 'Int64'));
SELECT array_insert(make_array(1::INT), 1, 3000000000::BIGINT);
----
[3000000000, 1]

Expand Down
2 changes: 1 addition & 1 deletion crates/sqllogictest/test_files/array/shuffle.slt
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ NULL

# Typed null lists have no child values to shuffle.
query ??
SELECT shuffle(arrow_cast(NULL, 'List(Int32)')), shuffle(arrow_cast(NULL, 'LargeList(Int32)'));
SELECT shuffle(NULL::ARRAY<INT>), shuffle(arrow_cast(NULL, 'LargeList(Int32)'));
----
NULL NULL

Expand Down
38 changes: 19 additions & 19 deletions crates/sqllogictest/test_files/bitmap/bitmap_bit_position.slt
Original file line number Diff line number Diff line change
Expand Up @@ -3,96 +3,96 @@
# SPDX-FileContributor: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements

query I
SELECT bitmap_bit_position(arrow_cast(1, 'Int8'));
SELECT bitmap_bit_position(1::TINYINT);
----
0

query I
SELECT bitmap_bit_position(arrow_cast(3, 'Int8'));
SELECT bitmap_bit_position(3::TINYINT);
----
2

query I
SELECT bitmap_bit_position(arrow_cast(7, 'Int8'));
SELECT bitmap_bit_position(7::TINYINT);
----
6

query I
SELECT bitmap_bit_position(arrow_cast(15, 'Int8'));
SELECT bitmap_bit_position(15::TINYINT);
----
14

query I
SELECT bitmap_bit_position(arrow_cast(-1, 'Int8'));
SELECT bitmap_bit_position((-1)::TINYINT);
----
1

query I
SELECT bitmap_bit_position(arrow_cast(256, 'Int16'));
SELECT bitmap_bit_position(256::SMALLINT);
----
255

query I
SELECT bitmap_bit_position(arrow_cast(1024, 'Int16'));
SELECT bitmap_bit_position(1024::SMALLINT);
----
1023

query I
SELECT bitmap_bit_position(arrow_cast(-32768, 'Int16'));
SELECT bitmap_bit_position((-32768)::SMALLINT);
----
0

query I
SELECT bitmap_bit_position(arrow_cast(16384, 'Int16'));
SELECT bitmap_bit_position(16384::SMALLINT);
----
16383

query I
SELECT bitmap_bit_position(arrow_cast(-1, 'Int16'));
SELECT bitmap_bit_position((-1)::SMALLINT);
----
1

query I
SELECT bitmap_bit_position(arrow_cast(65536, 'Int32'));
SELECT bitmap_bit_position(65536::INT);
----
32767

query I
SELECT bitmap_bit_position(arrow_cast(1048576, 'Int32'));
SELECT bitmap_bit_position(1048576::INT);
----
32767

query I
SELECT bitmap_bit_position(arrow_cast(-2147483648, 'Int32'));
SELECT bitmap_bit_position((-2147483648)::INT);
----
0

query I
SELECT bitmap_bit_position(arrow_cast(1073741824, 'Int32'));
SELECT bitmap_bit_position(1073741824::INT);
----
32767

query I
SELECT bitmap_bit_position(arrow_cast(-1, 'Int32'));
SELECT bitmap_bit_position((-1)::INT);
----
1

query I
SELECT bitmap_bit_position(arrow_cast(4294967296, 'Int64'));
SELECT bitmap_bit_position(4294967296::BIGINT);
----
32767

query I
SELECT bitmap_bit_position(arrow_cast(-1, 'Int64'));
SELECT bitmap_bit_position((-1)::BIGINT);
----
1

query I
SELECT bitmap_bit_position(arrow_cast(-9223372036854775808, 'Int64'));
SELECT bitmap_bit_position((-9223372036854775808)::BIGINT);
----
0

query I
SELECT bitmap_bit_position(arrow_cast(9223372036854775807, 'Int64'));
SELECT bitmap_bit_position(9223372036854775807::BIGINT);
----
32766
42 changes: 21 additions & 21 deletions crates/sqllogictest/test_files/bitmap/bitmap_bucket_number.slt
Original file line number Diff line number Diff line change
Expand Up @@ -3,106 +3,106 @@
# SPDX-FileContributor: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements

query I
SELECT bitmap_bucket_number(arrow_cast(1, 'Int8'));
SELECT bitmap_bucket_number(1::TINYINT);
----
1

query I
SELECT bitmap_bucket_number(arrow_cast(127, 'Int8'));
SELECT bitmap_bucket_number(127::TINYINT);
----
1

query I
SELECT bitmap_bucket_number(arrow_cast(-1, 'Int8'));
SELECT bitmap_bucket_number((-1)::TINYINT);
----
0

query I
SELECT bitmap_bucket_number(arrow_cast(-64, 'Int8'));
SELECT bitmap_bucket_number((-64)::TINYINT);
----
0

query I
SELECT bitmap_bucket_number(arrow_cast(-65, 'Int8'));
SELECT bitmap_bucket_number((-65)::TINYINT);
----
0

query I
SELECT bitmap_bucket_number(arrow_cast(1, 'Int16'));
SELECT bitmap_bucket_number(1::SMALLINT);
----
1

query I
SELECT bitmap_bucket_number(arrow_cast(257, 'Int16'));
SELECT bitmap_bucket_number(257::SMALLINT);
----
1

query I
SELECT bitmap_bucket_number(arrow_cast(32767, 'Int16'));
SELECT bitmap_bucket_number(32767::SMALLINT);
----
1

query I
SELECT bitmap_bucket_number(arrow_cast(-1, 'Int16'));
SELECT bitmap_bucket_number((-1)::SMALLINT);
----
0

query I
SELECT bitmap_bucket_number(arrow_cast(-256, 'Int16'));
SELECT bitmap_bucket_number((-256)::SMALLINT);
----
0

query I
SELECT bitmap_bucket_number(arrow_cast(1, 'Int32'));
SELECT bitmap_bucket_number(1::INT);
----
1

query I
SELECT bitmap_bucket_number(arrow_cast(65537, 'Int32'));
SELECT bitmap_bucket_number(65537::INT);
----
3

query I
SELECT bitmap_bucket_number(arrow_cast(2147483647, 'Int32'));
SELECT bitmap_bucket_number(2147483647::INT);
----
65536

query I
SELECT bitmap_bucket_number(arrow_cast(-1, 'Int32'));
SELECT bitmap_bucket_number((-1)::INT);
----
0

query I
SELECT bitmap_bucket_number(arrow_cast(-65536, 'Int32'));
SELECT bitmap_bucket_number((-65536)::INT);
----
-2

query I
SELECT bitmap_bucket_number(arrow_cast(1, 'Int64'));
SELECT bitmap_bucket_number(1::BIGINT);
----
1

query I
SELECT bitmap_bucket_number(arrow_cast(4294967297, 'Int64'));
SELECT bitmap_bucket_number(4294967297::BIGINT);
----
131073

query I
SELECT bitmap_bucket_number(arrow_cast(9223372036854775807, 'Int64'));
SELECT bitmap_bucket_number(9223372036854775807::BIGINT);
----
281474976710656

query I
SELECT bitmap_bucket_number(arrow_cast(-1, 'Int64'));
SELECT bitmap_bucket_number((-1)::BIGINT);
----
0

query I
SELECT bitmap_bucket_number(arrow_cast(-4294967296, 'Int64'));
SELECT bitmap_bucket_number((-4294967296)::BIGINT);
----
-131072

query I
SELECT bitmap_bucket_number(arrow_cast(-9223372036854775808, 'Int64'));
SELECT bitmap_bucket_number((-9223372036854775808)::BIGINT);
----
-281474976710656
Loading
Loading