yiguolei commented on code in PR #24724: URL: https://github.com/apache/doris/pull/24724#discussion_r1333768283
########## be/src/vec/exec/scan/scanner_context.cpp: ########## @@ -244,6 +247,28 @@ Status ScannerContext::get_block_from_queue(RuntimeState* state, vectorized::Blo return Status::OK(); } +Status ScannerContext::validate_block_schema(Block* block) { + size_t index = 0; + for (auto& slot : _output_tuple_desc->slots()) { + if (slot->need_materialize()) { + continue; + } + auto& data = block->get_by_position(index++); + if (data.column->is_nullable() != data.type->is_nullable()) { + throw doris::Exception(ErrorCode::INVALID_SCHEMA, Review Comment: and check the full call stack to make sure the return status is no discard -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org