This is an automated email from the ASF dual-hosted git repository. morningman pushed a commit to branch branch-1.2-lts in repository https://gitbox.apache.org/repos/asf/doris.git
commit 4e739b5eb8e6b9b2b44f51f3033a93aed161ac06 Author: morningman <morning...@163.com> AuthorDate: Wed Jul 19 14:29:56 2023 +0800 [Bug](table-function) fix wrong result when seprator of explode_split size more than one (#18824) fix wrong result when seprator of explode_split size more than one --- be/src/vec/exprs/table_function/vexplode_split.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/be/src/vec/exprs/table_function/vexplode_split.cpp b/be/src/vec/exprs/table_function/vexplode_split.cpp index 3401474715..39a3dbd56d 100644 --- a/be/src/vec/exprs/table_function/vexplode_split.cpp +++ b/be/src/vec/exprs/table_function/vexplode_split.cpp @@ -89,11 +89,10 @@ Status VExplodeSplitTableFunction::process_row(size_t row_idx) { if (first != second) { output.emplace_back(strv.substr(std::distance(strv.begin(), first), std::distance(first, second))); - first = std::next(second); } else { output.emplace_back("", 0); - first = std::next(second, delims.size()); } + first = std::next(second, delims.size()); if (second == last) { break; --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org