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 eb8133b526 [VL] Initialize `typeConvertor_` in
VeloxToSubstraitPlanConvertor (#11682)
eb8133b526 is described below
commit eb8133b52617c571ca739a5aaa43c313dcb51823
Author: Ankita Victor <[email protected]>
AuthorDate: Tue Mar 3 15:33:00 2026 +0530
[VL] Initialize `typeConvertor_` in VeloxToSubstraitPlanConvertor (#11682)
---
cpp/velox/substrait/VeloxToSubstraitPlan.h | 2 +-
cpp/velox/tests/VeloxToSubstraitTypeTest.cc | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/cpp/velox/substrait/VeloxToSubstraitPlan.h
b/cpp/velox/substrait/VeloxToSubstraitPlan.h
index 701d57aedb..42a0a1bd99 100644
--- a/cpp/velox/substrait/VeloxToSubstraitPlan.h
+++ b/cpp/velox/substrait/VeloxToSubstraitPlan.h
@@ -104,7 +104,7 @@ class VeloxToSubstraitPlanConvertor {
/// The Type converter used to conver velox representation into Substrait
/// type.
- std::shared_ptr<VeloxToSubstraitTypeConvertor> typeConvertor_;
+ std::shared_ptr<VeloxToSubstraitTypeConvertor> typeConvertor_ =
std::make_shared<VeloxToSubstraitTypeConvertor>();
/// The Extension collector storing the relations between the function
/// signature and the function reference number.
diff --git a/cpp/velox/tests/VeloxToSubstraitTypeTest.cc
b/cpp/velox/tests/VeloxToSubstraitTypeTest.cc
index ea8ff790b2..e7d637ddbb 100644
--- a/cpp/velox/tests/VeloxToSubstraitTypeTest.cc
+++ b/cpp/velox/tests/VeloxToSubstraitTypeTest.cc
@@ -37,7 +37,7 @@ class VeloxToSubstraitTypeTest : public ::testing::Test {
<< "Expected: " << type->toString() << ", but got: " <<
sameType->toString();
}
- std::shared_ptr<VeloxToSubstraitTypeConvertor> typeConvertor_;
+ std::shared_ptr<VeloxToSubstraitTypeConvertor> typeConvertor_ =
std::make_shared<VeloxToSubstraitTypeConvertor>();
};
TEST_F(VeloxToSubstraitTypeTest, basic) {
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]