mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 15:12:02 +00:00
Fix arrayDifference() for consts
This commit is contained in:
parent
3c75844a79
commit
6403cbee46
@ -20,7 +20,6 @@ namespace ErrorCodes
|
||||
*/
|
||||
struct ArrayDifferenceImpl
|
||||
{
|
||||
static bool useDefaultImplementationForConstants() { return true; }
|
||||
static bool needBoolean() { return false; }
|
||||
static bool needExpression() { return false; }
|
||||
static bool needOneArray() { return false; }
|
||||
@ -129,6 +128,7 @@ struct ArrayDifferenceImpl
|
||||
{
|
||||
ColumnPtr res;
|
||||
|
||||
mapped = mapped->convertToFullColumnIfConst();
|
||||
if (executeType< UInt8 , Int16>(mapped, array, res) ||
|
||||
executeType< UInt16, Int32>(mapped, array, res) ||
|
||||
executeType< UInt32, Int64>(mapped, array, res) ||
|
||||
|
@ -0,0 +1 @@
|
||||
[0,0]
|
@ -0,0 +1 @@
|
||||
SELECT toString(arrayDifference(x->0, [1, 2]));
|
Loading…
Reference in New Issue
Block a user