Skip to content

Commit

Permalink
Require error_context for AsArrowResult API.
Browse files Browse the repository at this point in the history
  • Loading branch information
niyue committed Dec 22, 2023
1 parent db819dc commit 8b88f6d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cpp/src/gandiva/engine.cc
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
#include <utility>

#include <arrow/util/io_util.h>
#include "arrow/util/logging.h"
#include <arrow/util/logging.h>

#if defined(_MSC_VER)
#pragma warning(push)
Expand Down Expand Up @@ -117,7 +117,7 @@ std::once_flag register_exported_funcs_flag;

template <typename T>
arrow::Result<T> AsArrowResult(llvm::Expected<T>& expected,
const std::string& error_context = "") {
const std::string& error_context) {
if (!expected) {
return Status::CodeGenError(error_context, llvm::toString(expected.takeError()));
}
Expand Down

0 comments on commit 8b88f6d

Please sign in to comment.