Skip to content

Commit 5f27d24

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

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
@@ -189,7 +189,7 @@ class ArraysIntersectSingleParam : public exec::VectorFunction {
189189

190190
const auto elementCount =
191191
countElements<ArrayVector>(innerRows, *decodedInnerArray);
192-
const auto rowCount = args[0]->size();
192+
const auto rowCount = rows.end();
193193

194194
// Allocate new vectors for indices, nulls, length and offsets.
195195
BufferPtr newIndices = allocateIndices(elementCount, pool);

0 commit comments

Comments
 (0)