-
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
DB::TiFlashException: Column index out of bound: 4, should in [0,3) #9188
Labels
affects-7.1
affects-7.5
affects-8.1
component/storage
impact/panic
severity/major
type/bug
The issue is confirmed as a bug.
Comments
|
ColumnDefine getColumnDefineForColumnExpr(const tipb::Expr & expr, const ColumnDefines & columns_to_read)
{
assert(isColumnExpr(expr));
auto column_index = decodeDAGInt64(expr.val());
if (column_index < 0 || column_index >= static_cast<Int64>(columns_to_read.size()))
{
throw TiFlashException(
Errors::Coprocessor::BadRequest,
"Column index out of bound: {}, should in [0,{})",
column_index,
columns_to_read.size());
}
return columns_to_read[column_index];
} |
Another case of reproducing the issue with incorrect query results.1. Create table and insert data.
2. Query result with TiFlash.
3. Query result with TiKV.
|
JaySon-Huang
added
severity/major
component/storage
and removed
severity/moderate
labels
Jul 4, 2024
12 tasks
ti-chi-bot bot
added a commit
that referenced
this issue
Jul 9, 2024
…irtual columns in the query (#9189) close #9188 1. Use the original columns in `query_info.dag_query` instead of `columns_to_read` when building `RSOperator`. 2. For runtime filters, creating the `DM::Attr` object in `StorageDeltaMerge::read`, so it doesn't need to rely on `column_to_read`. Co-authored-by: ti-chi-bot[bot] <108142056+ti-chi-bot[bot]@users.noreply.github.com>
This was referenced Jul 9, 2024
ti-chi-bot bot
pushed a commit
that referenced
this issue
Jul 11, 2024
…irtual columns in the query (#9189) (#9206) close #9188 1. Use the original columns in `query_info.dag_query` instead of `columns_to_read` when building `RSOperator`. 2. For runtime filters, creating the `DM::Attr` object in `StorageDeltaMerge::read`, so it doesn't need to rely on `column_to_read`. Signed-off-by: ti-chi-bot <[email protected]> Co-authored-by: jinhelin <[email protected]>
JinheLin
added a commit
that referenced
this issue
Jul 29, 2024
…irtual columns in the query (#9189) (#9206) close #9188 1. Use the original columns in `query_info.dag_query` instead of `columns_to_read` when building `RSOperator`. 2. For runtime filters, creating the `DM::Attr` object in `StorageDeltaMerge::read`, so it doesn't need to rely on `column_to_read`. Signed-off-by: ti-chi-bot <[email protected]> Co-authored-by: jinhelin <[email protected]>
12 tasks
ti-chi-bot bot
pushed a commit
that referenced
this issue
Jul 30, 2024
…irtual columns in the query (release-8.1) (#9265) close #9188 1. Use the original columns in `query_info.dag_query` instead of `columns_to_read` when building `RSOperator`. 2. For runtime filters, creating the `DM::Attr` object in `StorageDeltaMerge::read`, so it doesn't need to rely on `column_to_read`. Signed-off-by: ti-chi-bot <[email protected]> Co-authored-by: Ti Chi Robot <[email protected]> Co-authored-by: jinhelin <[email protected]>
12 tasks
ti-chi-bot bot
pushed a commit
that referenced
this issue
Aug 9, 2024
…irtual columns in the query (release-7.1) (#9267) close #9188 Use the original columns in `query_info.dag_query` instead of `columns_to_read` when building `RSOperator`. Signed-off-by: Lloyd-Pottiger <[email protected]> Co-authored-by: Lloyd-Pottiger <[email protected]> Co-authored-by: Lloyd-Pottiger <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
affects-7.1
affects-7.5
affects-8.1
component/storage
impact/panic
severity/major
type/bug
The issue is confirmed as a bug.
Bug Report
Please answer these questions before submitting your issue. Thanks!
1. Minimal reproduce step (Required)
2. What did you expect to see? (Required)
3. What did you see instead (Required)
4. What is your TiFlash version? (Required)
The text was updated successfully, but these errors were encountered: