xiaokang commented on code in PR #10694: URL: https://github.com/apache/doris/pull/10694#discussion_r936697486
########## be/src/olap/reader.cpp: ########## @@ -197,11 +197,17 @@ Status TabletReader::_capture_rs_readers(const ReaderParams& read_params, // it's ok for rowset to return unordered result need_ordered_result = false; } + + if (read_params.read_orderby_key) { + need_ordered_result = true; Review Comment: btw, for normal query on UNIQUE_KEYS, need_ordered_result is true but read_params.read_orderby_key is false. -- 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