mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-24 16:42:05 +00:00
2b982bcc3d
Signed-off-by: clundro <859287553@qq.com>
29 lines
1.5 KiB
SQL
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]));
|