Skip to content

Commit

Permalink
[velox]makes substrait parser parseType() virtual
Browse files Browse the repository at this point in the history
  • Loading branch information
liangjiawei1110 committed Dec 17, 2024
1 parent e98df40 commit 7880c7c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
4 changes: 3 additions & 1 deletion velox/substrait/SubstraitParser.h
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,9 @@ class SubstraitParser {
const ::substrait::NamedStruct& namedStruct);

/// Parse Substrait Type.
TypePtr parseType(const ::substrait::Type& substraitType);
virtual TypePtr parseType(const ::substrait::Type& substraitType);

virtual ~SubstraitParser() = default;

/// Parse Substrait ReferenceSegment.
int32_t parseReferenceSegment(
Expand Down
4 changes: 4 additions & 0 deletions velox/substrait/SubstraitToVeloxPlan.h
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,10 @@ class SubstraitVeloxPlanConverter {
const ::substrait::RelCommon& relCommon,
const core::PlanNodePtr& noEmitNode);

void setSubstraitParser(std::shared_ptr<SubstraitParser> substraitParser) {
substraitParser_ = substraitParser;
}

protected:
/// Returns unique ID to use for plan node. Produces sequential numbers
/// starting from zero.
Expand Down

0 comments on commit 7880c7c

Please sign in to comment.