BiteTheDDDDt opened a new issue #7792: URL: https://github.com/apache/incubator-doris/issues/7792
### Search before asking - [X] I had searched in the [issues](https://github.com/apache/incubator-doris/issues?q=is%3Aissue) and found no similar issues. ### Description 1. support function topn 2. remove unused header 3. remove `get_header_file_path()` and `get_address_of_add_function()` ### Use case ```sql MySQL [tpch]> set enable_vectorized_engine = false; Query OK, 0 rows affected (0.001 sec) MySQL [tpch]> select topn(l_linestatus,5,10) from lineitem; +-----------------------------+ | topn(`l_linestatus`, 5, 10) | +-----------------------------+ | {"F":29998258,"O":29987794} | +-----------------------------+ 1 row in set (5.264 sec) MySQL [tpch]> set enable_vectorized_engine = true; Query OK, 0 rows affected (0.001 sec) MySQL [tpch]> select topn(l_linestatus,5,10) from lineitem; +-----------------------------+ | topn(`l_linestatus`, 5, 10) | +-----------------------------+ | {"F":29998258,"O":29987794} | +-----------------------------+ 1 row in set (2.075 sec) MySQL [tpch]> set enable_vectorized_engine = false; Query OK, 0 rows affected (0.001 sec) MySQL [tpch]> select topn(l_partkey,3) from lineitem; +-----------------------------------------+ | topn(`l_partkey`, 3) | +-----------------------------------------+ | {"304540":58,"1090021":58,"1457334":57} | +-----------------------------------------+ 1 row in set (34.988 sec) MySQL [tpch]> set enable_vectorized_engine = true; Query OK, 0 rows affected (0.001 sec) MySQL [tpch]> select topn(l_partkey,3) from lineitem; +----------------------------------------+ | topn(`l_partkey`, 3) | +----------------------------------------+ | {"304540":58,"1090021":58,"782803":57} | +----------------------------------------+ 1 row in set (18.057 sec) ``` ### Related issues _No response_ ### Are you willing to submit PR? - [X] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct) -- 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