Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable new planner by default #6644

Closed
6 of 8 tasks
sundy-li opened this issue Jul 15, 2022 · 5 comments
Closed
6 of 8 tasks

Enable new planner by default #6644

sundy-li opened this issue Jul 15, 2022 · 5 comments
Assignees
Labels
C-feature Category: feature

Comments

@sundy-li
Copy link
Member

sundy-li commented Jul 15, 2022

Summary

Description for this feature.

@Xuanwo
Copy link
Member

Xuanwo commented Jul 19, 2022

cc @sundy-li, I will take part in #6683

@sundy-li
Copy link
Member Author

cc @sundy-li, I will take part in #6683

Ok, you can start it after #6648 is merged.

@BohuTANG
Copy link
Member

Add enable the global setting to the new planner by default task to the list, cc @sundy-li
Reference #6579

@sundy-li
Copy link
Member Author

Add enable the global setting to the new planner by default task to the list, cc @sundy-li Reference #6579

We can set global using:

set enable_planner_v2 = 1;
set gloabl enable_planner_v2 = 1;

Then:

➜ mysql -h 127.0.0.1  -P3307 -uroot --prompt "databend > "
Welcome to the MariaDB monitor.  Commands end with ; or \g.
Your MySQL connection id is 39
Server version: 8.0.26-v0.7.137-nightly-98ec93e-simd(rust-1.64.0-nightly-2022-07-26T01:41:27.160938502Z) 0

Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

databend > explain select sum(number) from numbers(100);
+-------------------------------------------------------------------------------------------+
| explain                                                                                   |
+-------------------------------------------------------------------------------------------+
| Project: [sum(number)]                                                                    |
| └── EvalScalar: [sum(number)]                                                             |
|     └── Aggregate(Final): group items: [], aggregate functions: [sum(number)]             |
|         └── Aggregate(Partial): group items: [], aggregate functions: [sum(number)]       |
|             └── Scan: default.system.numbers                                              |
+-------------------------------------------------------------------------------------------+
5 rows in set (0.041 sec)

@BohuTANG
Copy link
Member

Cloud platform can not do 'set enable_planner_v2 = 1'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-feature Category: feature
Projects
None yet
Development

No branches or pull requests

3 participants