github-actions[bot] commented on code in PR #18615: URL: https://github.com/apache/doris/pull/18615#discussion_r1165194331
########## be/src/vec/exec/format/orc/vorc_reader.cpp: ########## @@ -847,32 +1013,254 @@ std::string OrcReader::_get_field_name_lower_case(const orc::Type* orc_type, int } Status OrcReader::get_next_block(Block* block, size_t* read_rows, bool* eof) { - SCOPED_RAW_TIMER(&_statistics.column_read_time); - { - SCOPED_RAW_TIMER(&_statistics.get_batch_time); - // reset decimal_scale_params_index - _decimal_scale_params_index = 0; - if (!_row_reader->next(*_batch)) { - *eof = true; - *read_rows = 0; - return Status::OK(); - } - } - const auto& batch_vec = down_cast<orc::StructVectorBatch*>(_batch.get())->fields; - for (auto& col : _read_cols_lower_case) { - auto& column_with_type_and_name = block->get_by_name(col); + if (_lazy_read_ctx.can_lazy_read) { + std::vector<uint32_t> columns_to_filter; + int column_to_keep = block->columns(); + columns_to_filter.resize(column_to_keep); + for (uint32_t i = 0; i < column_to_keep; ++i) { + columns_to_filter[i] = i; + } + uint64_t rr; + SCOPED_RAW_TIMER(&_statistics.column_read_time); + { + SCOPED_RAW_TIMER(&_statistics.get_batch_time); + // reset decimal_scale_params_index; + _decimal_scale_params_index = 0; + rr = _row_reader->nextBatch(*_batch, block); Review Comment: warning: no member named 'nextBatch' in 'orc::RowReader' [clang-diagnostic-error] ```cpp rr = _row_reader->nextBatch(*_batch, block); ^ ``` -- 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