From 6d19bcc207df913832e4a8f55c00d44dc5d39410 Mon Sep 17 00:00:00 2001 From: David Sisson Date: Fri, 7 Jul 2023 21:49:34 -0700 Subject: [PATCH] More fixes to make the code compatible with ancient absl. --- src/substrait/common/CMakeLists.txt | 2 -- src/substrait/textplan/parser/SubstraitPlanRelationVisitor.cpp | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/src/substrait/common/CMakeLists.txt b/src/substrait/common/CMakeLists.txt index dac9006c..846d077f 100644 --- a/src/substrait/common/CMakeLists.txt +++ b/src/substrait/common/CMakeLists.txt @@ -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) diff --git a/src/substrait/textplan/parser/SubstraitPlanRelationVisitor.cpp b/src/substrait/textplan/parser/SubstraitPlanRelationVisitor.cpp index 46fc0e08..e31c2289 100644 --- a/src/substrait/textplan/parser/SubstraitPlanRelationVisitor.cpp +++ b/src/substrait/textplan/parser/SubstraitPlanRelationVisitor.cpp @@ -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; }