Skip to content

Commit

Permalink
Revert eeb0093
Browse files Browse the repository at this point in the history
  • Loading branch information
kryonix committed Feb 13, 2024
1 parent 0ff25a6 commit dee8d69
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/function/scalar/list/list_concat.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -55,12 +55,14 @@ static void ListConcatFunction(DataChunk &args, ExpressionState &state, Vector &
if (lhs_data.validity.RowIsValid(lhs_list_index)) {
const auto &lhs_entry = lhs_entries[lhs_list_index];
result_entries[i].length += lhs_entry.length;
ListVector::Append(result, lhs_child, lhs_entry.offset + lhs_entry.length, lhs_entry.offset);
ListVector::Append(result, lhs_child, *lhs_child_data.sel, lhs_entry.offset + lhs_entry.length,
lhs_entry.offset);
}
if (rhs_data.validity.RowIsValid(rhs_list_index)) {
const auto &rhs_entry = rhs_entries[rhs_list_index];
result_entries[i].length += rhs_entry.length;
ListVector::Append(result, rhs_child, rhs_entry.offset + rhs_entry.length, rhs_entry.offset);
ListVector::Append(result, rhs_child, *rhs_child_data.sel, rhs_entry.offset + rhs_entry.length,
rhs_entry.offset);
}
offset += result_entries[i].length;
}
Expand Down

0 comments on commit dee8d69

Please sign in to comment.