Skip to content

Commit

Permalink
add more msg
Browse files Browse the repository at this point in the history
Signed-off-by: Lloyd-Pottiger <[email protected]>
  • Loading branch information
Lloyd-Pottiger committed Apr 12, 2023
1 parent bfbf6c1 commit e5421b5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dbms/src/Flash/Coprocessor/DAGUtils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1134,7 +1134,7 @@ String getColumnNameForColumnExpr(const tipb::Expr & expr, const std::vector<Nam
auto column_index = decodeDAGInt64(expr.val());
if (column_index < 0 || column_index >= static_cast<Int64>(input_col.size()))
{
throw TiFlashException("Column index out of bound", Errors::Coprocessor::BadRequest);
throw TiFlashException(Errors::Coprocessor::BadRequest, "Column index out of bound, expr: {}, size of input columns: {}", expr.DebugString(), input_col.size());
}
return input_col[column_index].name;
}
Expand All @@ -1144,7 +1144,7 @@ ColumnID getColumnIDForColumnExpr(const tipb::Expr & expr, const std::vector<Col
auto column_index = decodeDAGInt64(expr.val());
if (column_index < 0 || column_index >= static_cast<Int64>(input_col.size()))
{
throw TiFlashException("Column index out of bound", Errors::Coprocessor::BadRequest);
throw TiFlashException(Errors::Coprocessor::BadRequest, "Column index out of bound, expr: {}, size of input columns: {}", expr.DebugString(), input_col.size());
}
return input_col[column_index].id;
}
Expand Down

0 comments on commit e5421b5

Please sign in to comment.