From 0cbc4422a3497c00e64b8ae2f3a909338fce0da4 Mon Sep 17 00:00:00 2001 From: Yuan Date: Tue, 1 Mar 2022 05:52:19 +0800 Subject: [PATCH] fix codegen with out_of_range check (#744) Signed-off-by: Yuan Zhou --- .../src/codegen/arrow_compute/ext/expression_codegen_visitor.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/native-sql-engine/cpp/src/codegen/arrow_compute/ext/expression_codegen_visitor.cc b/native-sql-engine/cpp/src/codegen/arrow_compute/ext/expression_codegen_visitor.cc index 5186710ef..71162d234 100644 --- a/native-sql-engine/cpp/src/codegen/arrow_compute/ext/expression_codegen_visitor.cc +++ b/native-sql-engine/cpp/src/codegen/arrow_compute/ext/expression_codegen_visitor.cc @@ -683,7 +683,7 @@ arrow::Status ExpressionCodegenVisitor::Visit(const gandiva::FunctionNode& node) << ");" << std::endl; prepare_ss << "} catch (std::invalid_argument) {" << std::endl; prepare_ss << validity << " = false;" << std::endl; - prepare_ss << "} catch (std::out_of_range)" << std::endl; + prepare_ss << "} catch (std::out_of_range) {" << std::endl; prepare_ss << validity << " = false;" << std::endl; prepare_ss << "}" << std::endl; prepare_ss << "}" << std::endl;