This is an automated email from the ASF dual-hosted git repository.
rui pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-gluten.git
The following commit(s) were added to refs/heads/main by this push:
new e3ba961912 [VL] Use resize() instead of reserve() in getEmitInfo
(#11623)
e3ba961912 is described below
commit e3ba96191200878a4da8ed587b8d51562dc080c4
Author: Ankita Victor <[email protected]>
AuthorDate: Wed Feb 18 17:27:53 2026 +0530
[VL] Use resize() instead of reserve() in getEmitInfo (#11623)
---
cpp/velox/substrait/SubstraitToVeloxPlan.cc | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/cpp/velox/substrait/SubstraitToVeloxPlan.cc
b/cpp/velox/substrait/SubstraitToVeloxPlan.cc
index 83099efdde..727f4882e1 100644
--- a/cpp/velox/substrait/SubstraitToVeloxPlan.cc
+++ b/cpp/velox/substrait/SubstraitToVeloxPlan.cc
@@ -83,8 +83,8 @@ EmitInfo getEmitInfo(const ::substrait::RelCommon& relCommon,
const core::PlanNo
const auto& emit = relCommon.emit();
int emitSize = emit.output_mapping_size();
EmitInfo emitInfo;
- emitInfo.projectNames.reserve(emitSize);
- emitInfo.expressions.reserve(emitSize);
+ emitInfo.projectNames.resize(emitSize);
+ emitInfo.expressions.resize(emitSize);
const auto& outputType = node->outputType();
for (int i = 0; i < emitSize; i++) {
int32_t mapId = emit.output_mapping(i);
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]