xiaokang opened a new pull request, #20406: URL: https://github.com/apache/doris/pull/20406
## Proposed changes Issue Number: close #xxx 1. add testcase for key topn opt 2. disable key topn opt only for DUP_KEYS and UNIQUE_KEYS with MOW 3. cherry pick some bugfix commit from master commit 58c51086ca2ad4af4a2e584cd05d1b43de41b386 Author: Kang <kxiao.ti...@gmail.com> Date: Sun Feb 19 23:28:33 2023 +0800 [bugfix](topn) fix topn read_orderby_key_columns nullptr (#16896) commit 479272f86fc633fbe2d92f926d4495fa56a09a64 Author: Kang <kxiao.ti...@gmail.com> Date: Fri Mar 31 10:02:07 2023 +0800 [bugfix](topn) fix topn optimzation wrong result for NULL values (#18121) commit d9924c9b8ec04c5c44c302f3a7638d4cc47148fc Author: Kang <kxiao.ti...@gmail.com> Date: Fri Feb 10 12:56:33 2023 +0800 [Improvement](topn) add limit threashold session variable and fuzzy for topn optimizations (#16514) 1. add limit threshold for topn runtime pushdown and key topn optimization 2. use unified session variable topn_opt_limit_threshold for all topn optimizations 4. add fuzzy support for topn_opt_limit_threshold ## Further comments If this is a relatively large or complex change, kick off the discussion at [d...@doris.apache.org](mailto:d...@doris.apache.org) by explaining why you chose the solution you did and what alternatives you considered, etc... -- 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