[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
This commit is contained in:
@ -95,11 +95,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;
|
||||
|
||||
Reference in New Issue
Block a user