diff --git a/velox/functions/lib/aggregates/ValueList.h b/velox/functions/lib/aggregates/ValueList.h index 8f8909133874..27dcce7853c2 100644 --- a/velox/functions/lib/aggregates/ValueList.h +++ b/velox/functions/lib/aggregates/ValueList.h @@ -23,8 +23,6 @@ #include "velox/vector/ComplexVector.h" #include "velox/vector/DecodedVector.h" -using namespace facebook::velox::exec; - namespace facebook::velox::aggregate { // Represents a list of values, including nulls, for an array/map/distinct value @@ -139,7 +137,9 @@ class ValueListReader { // vectors. // TODO: This API only works if it is the only logic writing to `writer`. template -void copyValueListToArrayWriter(ArrayWriter& writer, ValueList& elements) { +void copyValueListToArrayWriter( + facebook::velox::exec::ArrayWriter& writer, + ValueList& elements) { writer.resetLength(); auto size = elements.size(); if (size == 0) {