diff --git a/velox/serializers/RowSerializer.h b/velox/serializers/RowSerializer.h index aaf7703d1630..7fd0c3b12507 100644 --- a/velox/serializers/RowSerializer.h +++ b/velox/serializers/RowSerializer.h @@ -108,8 +108,7 @@ class RowSerializer : public IterativeVectorSerializer { void flush(OutputStream* stream) override { for (const auto& buffer : buffers_) { - auto* rawBuffer = buffer->asMutable(); - stream->write(rawBuffer, buffer->size()); + stream->write(buffer->template asMutable(), buffer->size()); } buffers_.clear(); }