Skip to content

Commit

Permalink
fixed variable naming style
Browse files Browse the repository at this point in the history
  • Loading branch information
EpsilonPrime committed Sep 24, 2024
1 parent ed0731c commit 517c705
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions src/substrait/textplan/PlanPrinterVisitor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -72,14 +72,14 @@ std::string visitEnumArgument(const std::string& str) {
}

bool isAggregate(const SymbolInfo* symbol) {
if (const auto type_case =
if (const auto typeCase =
ANY_CAST_IF(::substrait::proto::Rel::RelTypeCase, symbol->subtype)) {
if (type_case == ::substrait::proto::Rel::kAggregate) {
if (typeCase == ::substrait::proto::Rel::kAggregate) {
return true;
}
}
if (const auto type_case = ANY_CAST_IF(RelationType, symbol->subtype)) {
return (type_case == RelationType::kAggregate);
if (const auto typeCase = ANY_CAST_IF(RelationType, symbol->subtype)) {
return (typeCase == RelationType::kAggregate);
}
return false;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -317,8 +317,8 @@ bool isRelationEmitDetail(SubstraitPlanParser::Relation_detailContext* ctx) {
}

bool isAggregate(const SymbolInfo* symbol) {
if (const auto type_case = ANY_CAST_IF(RelationType, symbol->subtype)) {
return (type_case == RelationType::kAggregate);
if (const auto typeCase = ANY_CAST_IF(RelationType, symbol->subtype)) {
return (typeCase == RelationType::kAggregate);
}
return false;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -373,8 +373,8 @@ comparisonToProto(const std::string& text) {
}

bool isAggregate(const SymbolInfo* symbol) {
if (const auto type_case = ANY_CAST_IF(RelationType, symbol->subtype)) {
return (type_case == RelationType::kAggregate);
if (const auto typeCase = ANY_CAST_IF(RelationType, symbol->subtype)) {
return (typeCase == RelationType::kAggregate);
}
return false;
}
Expand Down

0 comments on commit 517c705

Please sign in to comment.