Skip to content

Commit

Permalink
Fix for some errors occuring too often.
Browse files Browse the repository at this point in the history
  • Loading branch information
EpsilonPrime committed Jan 30, 2024
1 parent af4fb1e commit bfe2ff6
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/substrait/textplan/SymbolTablePrinter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -995,8 +995,9 @@ void SymbolTablePrinter::addInputsToExpression(
symbolTable,
*subquerySymbol,
expression->mutable_subquery()->mutable_scalar()->mutable_input());
} else {
SUBSTRAIT_FAIL("Internal Error: Known symbol is missing.");
}
SUBSTRAIT_FAIL("Internal Error: Known symbol is missing.");
}
case ::substrait::proto::Expression_Subquery::kInPredicate: {
// First visit the needle expressions.
Expand Down Expand Up @@ -1024,8 +1025,9 @@ void SymbolTablePrinter::addInputsToExpression(
expression->mutable_subquery()
->mutable_in_predicate()
->mutable_haystack());
} else {
SUBSTRAIT_FAIL("Internal Error: Known symbol is missing.");
}
SUBSTRAIT_FAIL("Internal Error: Known symbol is missing.");
}
break;
}
Expand All @@ -1046,8 +1048,9 @@ void SymbolTablePrinter::addInputsToExpression(
expression->mutable_subquery()
->mutable_set_predicate()
->mutable_tuples());
} else {
SUBSTRAIT_FAIL("Internal Error: Known symbol is missing.");
}
SUBSTRAIT_FAIL("Internal Error: Known symbol is missing.");
}
case ::substrait::proto::Expression_Subquery::kSetComparison: {
addInputsToExpression(
Expand Down

0 comments on commit bfe2ff6

Please sign in to comment.