Skip to content

Commit

Permalink
Added TODO to remove isAggregate eventually.
Browse files Browse the repository at this point in the history
  • Loading branch information
EpsilonPrime committed Oct 1, 2024
1 parent bd114dc commit ce112d7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/substrait/textplan/PlanPrinterVisitor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ std::string visitEnumArgument(const std::string& str) {
}

bool isAggregate(const SymbolInfo* symbol) {
// TODO: Remove after the relation type is one type internally.
if (const auto typeCase =
ANY_CAST_IF(::substrait::proto::Rel::RelTypeCase, symbol->subtype)) {
return (typeCase == ::substrait::proto::Rel::kAggregate);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -317,6 +317,7 @@ bool isRelationEmitDetail(SubstraitPlanParser::Relation_detailContext* ctx) {
}

bool isAggregate(const SymbolInfo* symbol) {
// TODO: Remove once relation types have a unified type internally.
if (const auto typeCase = ANY_CAST_IF(RelationType, symbol->subtype)) {
return (typeCase == RelationType::kAggregate);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -373,6 +373,7 @@ comparisonToProto(const std::string& text) {
}

bool isAggregate(const SymbolInfo* symbol) {
// TODO: Remove after the relation type is one type internally.
if (const auto typeCase = ANY_CAST_IF(RelationType, symbol->subtype)) {
return (typeCase == RelationType::kAggregate);
}
Expand Down

0 comments on commit ce112d7

Please sign in to comment.