Skip to content

Commit

Permalink
[enhancement](err-msg) Output column info when size invalid in block …
Browse files Browse the repository at this point in the history
…convertor
  • Loading branch information
TangSiyang2001 committed Oct 8, 2024
1 parent 76f2bb5 commit 0993e9b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions be/src/vec/olap/olap_data_convertor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -237,8 +237,10 @@ void OlapBlockDataConvertor::set_source_content(const vectorized::Block* block,
size_t cid = 0;
for (const auto& typed_column : *block) {
if (typed_column.column->size() != block->rows()) {
throw Exception(ErrorCode::INTERNAL_ERROR, "input invalid block, block={}",
block->dump_structure());
throw Exception(ErrorCode::INTERNAL_ERROR,
"column_size={} != block_rows_num={}, column={}, block={}",
typed_column.column->size(), block->rows(),
typed_column.dump_structure(), block->dump_structure());
}
_convertors[cid]->set_source_column(typed_column, row_pos, num_rows);
++cid;
Expand Down

0 comments on commit 0993e9b

Please sign in to comment.