-
Notifications
You must be signed in to change notification settings - Fork 3.7k
Closed
Labels
kind/featureCategorizes issue or PR as related to a new feature.Categorizes issue or PR as related to a new feature.
Description
Search before asking
- I had searched in the issues and found no similar issues.
Description
- support function topn
- remove unused header
- remove
get_header_file_path()andget_address_of_add_function()
Use case
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?
- Yes I am willing to submit a PR!
Code of Conduct
- I agree to follow this project's Code of Conduct
Metadata
Metadata
Assignees
Labels
kind/featureCategorizes issue or PR as related to a new feature.Categorizes issue or PR as related to a new feature.