Skip to content

Commit 10da53d

Browse files
committed
It will fail for Constant Complex vector
1 parent 10cdf6f commit 10da53d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

velox/functions/prestosql/ArrayIntersectExcept.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,7 @@ class ArrayIntersectExceptFunction : public exec::VectorFunction {
338338

339339
auto leftElementsCount =
340340
countElements<ArrayVector>(rows, *decodedLeftArray);
341-
vector_size_t rowCount = left->size();
341+
vector_size_t rowCount = rows.end();
342342

343343
// Allocate new vectors for indices, nulls, length and offsets.
344344
BufferPtr newIndices = allocateIndices(leftElementsCount, pool);

0 commit comments

Comments
 (0)