Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: check for IsRowId before accessing column name #9542

Merged
merged 1 commit into from
Nov 3, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
check for IsRowId before accessing column name
  • Loading branch information
stephaniewang526 committed Nov 1, 2023
commit 5c9d67e74a1b2a609e145e27709b4aec17ea3673
4 changes: 3 additions & 1 deletion src/common/multi_file_reader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,9 @@ bool MultiFileReader::ComplexFilterPushdown(ClientContext &context, vector<strin

unordered_map<string, column_t> column_map;
for (idx_t i = 0; i < get.column_ids.size(); i++) {
column_map.insert({get.names[get.column_ids[i]], i});
if (!IsRowIdColumnId(get.column_ids[i])) {
column_map.insert({get.names[get.column_ids[i]], i});
}
}

auto start_files = files.size();
Expand Down