Jibing-Li commented on code in PR #12275:
URL: https://github.com/apache/doris/pull/12275#discussion_r967856688


##########
be/src/vec/exec/scan/new_file_text_scanner.cpp:
##########
@@ -45,8 +45,9 @@ Status NewFileTextScanner::open(RuntimeState* state) {
 
 Status NewFileTextScanner::_get_block_impl(RuntimeState* state, Block* block, 
bool* eof) {
     SCOPED_TIMER(_read_timer);
-    RETURN_IF_ERROR(init_block(block));
-
+    if (!_is_load) {

Review Comment:
   > No need to check `_is_load`. Because if this is for load job. the src 
tuple descriptor is not null, which has already been checked in `init_block()`
   
   I was thinking, for load job, the `_input_block` has already been 
initialized in `VScanner::_init_input_block`. Checking `_is_load` is to avoid 
initialize the `_input_block` again.



-- 
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

Reply via email to