Skip to content
This repository has been archived by the owner on Sep 18, 2023. It is now read-only.

Commit

Permalink
fix in string
Browse files Browse the repository at this point in the history
Signed-off-by: Yuan Zhou <[email protected]>
  • Loading branch information
zhouyuan committed Sep 20, 2022
1 parent 4402456 commit 7f38a8e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ trait ColumnarExpression {
"get_json_object",
"translate",
"substr",
"instr",
"locate",
"btrim",
"ltrim",
"rtrim",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@ arrow::Status ExpressionCodegenVisitor::Visit(const gandiva::FunctionNode& node)
prepare_ss << "if (" << check_str_ << ")" << std::endl;
prepare_ss << codes_str_ << " = " << ss.str() << ";" << std::endl;
prepare_str_ += prepare_ss.str();
} else if (func_name.compare("instr") == 0) {
} else if (func_name.compare("locate") == 0) {
codes_str_ = func_name + "_" + std::to_string(cur_func_id);
auto validity = codes_str_ + "_validity";
real_codes_str_ = codes_str_;
Expand Down

0 comments on commit 7f38a8e

Please sign in to comment.