Skip to content

Commit

Permalink
[fix][serial] Support selection for v2 schema
Browse files Browse the repository at this point in the history
  • Loading branch information
githubgxll committed Feb 25, 2025
1 parent e075712 commit 44fe12e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions src/coprocessor/coprocessor_v2.cc
Original file line number Diff line number Diff line change
Expand Up @@ -719,11 +719,13 @@ void CoprocessorV2::GetOriginalColumnIndexes() {

void CoprocessorV2::GetSelectionColumnIndexes() {
if (!coprocessor_.selection_columns().empty()) {
int n = 0;
for (const auto& index : coprocessor_.selection_columns()) {
int i = index;
DINGO_LOG(DEBUG) << "index:" << i;
DINGO_LOG(DEBUG) << "selection index:" << i;
selection_column_indexes_.push_back(original_column_indexes_[i]);
selection_column_indexes_serial_[original_column_indexes_[i]] = i;
selection_column_indexes_serial_[original_column_indexes_[i]] = n;
n++;
}
} else {
DINGO_LOG(DEBUG) << "selection_columns empty()";
Expand Down

0 comments on commit 44fe12e

Please sign in to comment.