Skip to content

Commit

Permalink
More fixes to make the code compatible with ancient absl.
Browse files Browse the repository at this point in the history
  • Loading branch information
EpsilonPrime committed Jul 8, 2023
1 parent 5d86e64 commit 6d19bcc
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions src/substrait/common/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# SPDX-License-Identifier: Apache-2.0

find_package(fmt)

add_library(substrait_common Exceptions.cpp)

target_link_libraries(substrait_common fmt::fmt-header-only)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -790,7 +790,7 @@ std::any SubstraitPlanRelationVisitor::visitExpressionFunctionUse(
expr.mutable_scalar_function()->set_function_reference(funcReference);
for (const auto& exp : ctx->expression()) {
if (endsWith(exp->getText(), "_enum")) {
auto str = absl::StripSuffix(exp->getText(), "_enum");
std::string str = absl::StripSuffix(exp->getText(), "_enum");
expr.mutable_scalar_function()->add_arguments()->set_enum_(str);
continue;
}
Expand Down

0 comments on commit 6d19bcc

Please sign in to comment.