ClickHouse/tests/queries/0_stateless/02716_int256_arrayfunc.sql
clundro 2b982bcc3d [tests] add new line
Signed-off-by: clundro <859287553@qq.com>
2023-04-18 12:03:09 +08:00

29 lines
1.5 KiB
SQL

SELECT arrayCumSum([CAST('1', 'Int128'), 2]);
SELECT arrayCumSum([CAST('1', 'Int256'), 2]);
SELECT arrayCumSum([CAST('1', 'UInt128'), 2]);
SELECT arrayCumSum([CAST('1', 'UInt256'), 2]);
SELECT arrayCumSum([3, CAST('1', 'Int128'),CAST('1', 'Int256')]);
SELECT arrayCumSum([CAST('1', 'Int256'), CAST('1', 'Int128')]);
SELECT toTypeName(arrayCumSum([CAST('1', 'UInt128'), 2]));
SELECT toTypeName(arrayCumSum([CAST('1', 'Int128'), 2]));
SELECT toTypeName(arrayCumSum([CAST('1', 'UInt256'), CAST('1', 'UInt128')]));
SELECT toTypeName(arrayCumSum([CAST('1', 'Int256'), CAST('1', 'Int128')]));
SELECT arrayDifference([CAST('1', 'Int256'), 3]);
SELECT arrayDifference([CAST('1', 'UInt256'), 3]);
SELECT arrayDifference([CAST('1', 'UInt128'), 3]);
SELECT arrayDifference([CAST('1', 'Int128'), 3]);
SELECT toTypeName(arrayDifference([CAST('1', 'UInt128'), 3]));
SELECT toTypeName(arrayDifference([CAST('1', 'Int128'), 3]));
SELECT toTypeName(arrayDifference([CAST('1', 'UInt256'), 3]));
SELECT toTypeName(arrayDifference([CAST('1', 'Int256'), 3]));
SELECT arrayCumSumNonNegative([CAST('1', 'Int128'), -2]);
SELECT arrayCumSumNonNegative([CAST('1', 'Int256'), -2]);
SELECT arrayCumSumNonNegative([CAST('1', 'UInt128'), 2]);
SELECT arrayCumSumNonNegative([CAST('1', 'UInt256'), 2]);
SELECT toTypeName(arrayCumSumNonNegative([CAST('1', 'Int128'), -2]));
SELECT toTypeName(arrayCumSumNonNegative([CAST('1', 'Int256'), -2]));
SELECT toTypeName(arrayCumSumNonNegative([CAST('1', 'UInt128'), 2]));
SELECT toTypeName(arrayCumSumNonNegative([CAST('1', 'UInt256'), 2]));