ClickHouse/tests/queries/0_stateless/01716_array_difference_overflow.sql

9 lines
364 B
MySQL
Raw Normal View History

2021-02-13 00:45:06 +00:00
-- Overflow is Ok and behaves as the CPU does it.
SELECT arrayDifference([65536, -9223372036854775808]);
2022-08-14 08:14:13 +00:00
-- Diff of unsigned int -> int
SELECT arrayDifference( cast([10, 1], 'Array(UInt8)'));
SELECT arrayDifference( cast([10, 1], 'Array(UInt16)'));
SELECT arrayDifference( cast([10, 1], 'Array(UInt32)'));
SELECT arrayDifference( cast([10, 1], 'Array(UInt64)'));