mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-09-20 08:40:50 +00:00
Fix arrayCumSumNonNegative() for consts
This commit is contained in:
parent
6403cbee46
commit
c7e5cd7cda
@ -19,7 +19,6 @@ namespace ErrorCodes
|
||||
*/
|
||||
struct ArrayCumSumNonNegativeImpl
|
||||
{
|
||||
static bool useDefaultImplementationForConstants() { return true; }
|
||||
static bool needBoolean() { return false; }
|
||||
static bool needExpression() { return false; }
|
||||
static bool needOneArray() { return false; }
|
||||
@ -100,6 +99,7 @@ struct ArrayCumSumNonNegativeImpl
|
||||
{
|
||||
ColumnPtr res;
|
||||
|
||||
mapped = mapped->convertToFullColumnIfConst();
|
||||
if (executeType< UInt8 , UInt64>(mapped, array, res) ||
|
||||
executeType< UInt16, UInt64>(mapped, array, res) ||
|
||||
executeType< UInt32, UInt64>(mapped, array, res) ||
|
||||
|
@ -0,0 +1 @@
|
||||
[0,0]
|
@ -0,0 +1 @@
|
||||
SELECT toString(arrayCumSumNonNegative(x->0, [1, 2]));
|
Loading…
Reference in New Issue
Block a user