From 8b88f6d453b08bb29a56d279cc70bc4ee69458ad Mon Sep 17 00:00:00 2001 From: Yue Ni Date: Thu, 21 Dec 2023 18:13:22 +0800 Subject: [PATCH] Require error_context for AsArrowResult API. --- cpp/src/gandiva/engine.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cpp/src/gandiva/engine.cc b/cpp/src/gandiva/engine.cc index 28ab15d1e6e85..fc047f2ac0763 100644 --- a/cpp/src/gandiva/engine.cc +++ b/cpp/src/gandiva/engine.cc @@ -32,7 +32,7 @@ #include #include -#include "arrow/util/logging.h" +#include #if defined(_MSC_VER) #pragma warning(push) @@ -117,7 +117,7 @@ std::once_flag register_exported_funcs_flag; template arrow::Result AsArrowResult(llvm::Expected& expected, - const std::string& error_context = "") { + const std::string& error_context) { if (!expected) { return Status::CodeGenError(error_context, llvm::toString(expected.takeError())); }