imay commented on a change in pull request #1635: Enable parsing columns from file path for Broker Load (#1582) URL: https://github.com/apache/incubator-doris/pull/1635#discussion_r314604083
########## File path: be/src/exec/parquet_reader.cpp ########## @@ -122,16 +122,18 @@ inline void ParquetReaderWrap::fill_slot(Tuple* tuple, SlotDescriptor* slot_desc Status ParquetReaderWrap::column_indices(const std::vector<SlotDescriptor*>& tuple_slot_descs) { _parquet_column_ids.clear(); - for (auto slot_desc : tuple_slot_descs) { + for (int i = 0; i < _num_of_columns_from_file; i++) { + auto slot_desc = tuple_slot_descs.at(i); Review comment: ```suggestion auto slot_desc = tuple_slot_descs[i]; ``` ---------------------------------------------------------------- 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. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@doris.apache.org For additional commands, e-mail: dev-h...@doris.apache.org