-
Notifications
You must be signed in to change notification settings - Fork 409
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 columns_to_read
contains _tidb_rowid
#7283
Changes from 4 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
|
@@ -767,11 +767,28 @@ DM::PushDownFilterPtr StorageDeltaMerge::parsePushDownFilter(const SelectQueryIn | |||||||||||
const auto & table_infos = tidb_table_info.columns; | ||||||||||||
for (const auto & col : columns_to_read) | ||||||||||||
{ | ||||||||||||
// table_infos does not contain EXTRA_HANDLE_COLUMN and EXTRA_TABLE_ID_COLUMN | ||||||||||||
if (col.id == EXTRA_HANDLE_COLUMN_ID) | ||||||||||||
{ | ||||||||||||
auto handle = ColumnInfo(); | ||||||||||||
handle.id = EXTRA_HANDLE_COLUMN_ID; | ||||||||||||
handle.name = EXTRA_HANDLE_COLUMN_NAME; | ||||||||||||
table_scan_column_info.push_back(handle); | ||||||||||||
continue; | ||||||||||||
} | ||||||||||||
else if (col.id == ExtraTableIDColumnID) | ||||||||||||
{ | ||||||||||||
auto col = ColumnInfo(); | ||||||||||||
col.id = ExtraTableIDColumnID; | ||||||||||||
col.name = EXTRA_TABLE_ID_COLUMN_NAME; | ||||||||||||
table_scan_column_info.push_back(col); | ||||||||||||
continue; | ||||||||||||
} | ||||||||||||
auto iter = std::find_if( | ||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Better show the tiflash/dbms/src/Storages/StorageDeltaMerge.cpp Lines 779 to 783 in 405102e
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. And also L761 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
done
|
||||||||||||
table_infos.begin(), | ||||||||||||
table_infos.end(), | ||||||||||||
[col](const ColumnInfo & c) -> bool { return c.id == col.id; }); | ||||||||||||
RUNTIME_CHECK(iter != table_infos.end()); | ||||||||||||
RUNTIME_CHECK_MSG(iter != table_infos.end(), "column: [id: {}, name: {}] not found in table info", col.id, col.name); | ||||||||||||
table_scan_column_info.push_back(*iter); | ||||||||||||
} | ||||||||||||
|
||||||||||||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
show the
expr.ShortDebugString()
andinput_col.size()
when error happen