Skip to content

Commit

Permalink
handle streamload
Browse files Browse the repository at this point in the history
  • Loading branch information
dataroaring committed Nov 25, 2023
1 parent cd8cc58 commit 271fae5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion be/src/vec/sink/writer/vtablet_writer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1145,7 +1145,8 @@ Status VTabletWriter::_init(RuntimeState* state, RuntimeProfile* profile) {
return Status::InternalError("unknown destination tuple descriptor");
}

if (_output_tuple_desc->slots().size() != _vec_output_expr_ctxs.size()) {
if (_vec_output_expr_ctxs.size() > 0 &&
_output_tuple_desc->slots().size() != _vec_output_expr_ctxs.size()) {
LOG(WARNING) << "output tuple slot num should be equal to num of output exprs, "
<< "output_tuple_slot_num " << _output_tuple_desc->slots().size()
<< " output_expr_num " << _vec_output_expr_ctxs.size();
Expand Down
3 changes: 2 additions & 1 deletion be/src/vec/sink/writer/vtablet_writer_v2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,8 @@ Status VTabletWriterV2::_init(RuntimeState* state, RuntimeProfile* profile) {
return Status::InternalError("unknown destination tuple descriptor, id = {}",
_tuple_desc_id);
}
if (_output_tuple_desc->slots().size() != _vec_output_expr_ctxs.size()) {
if (_vec_output_expr_ctxs.size() > 0 &&
_output_tuple_desc->slots().size() != _vec_output_expr_ctxs.size()) {
LOG(WARNING) << "output tuple slot num should be equal to num of output exprs, "
<< "output_tuple_slot_num " << _output_tuple_desc->slots().size()
<< " output_expr_num " << _vec_output_expr_ctxs.size();
Expand Down

0 comments on commit 271fae5

Please sign in to comment.