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

[Bug] nereids planner slower than old planner #34759

Open
2 of 3 tasks
kobe6th opened this issue May 13, 2024 · 0 comments
Open
2 of 3 tasks

[Bug] nereids planner slower than old planner #34759

kobe6th opened this issue May 13, 2024 · 0 comments

Comments

@kobe6th
Copy link
Contributor

kobe6th commented May 13, 2024

Search before asking

  • I had searched in the issues and found no similar issues.

Version

2.1

What's Wrong?

nereids planner slower than old planner

What You Expected?

fix this issue

How to Reproduce?

CREATE TABLE `test_tbl` (
  `id` VARCHAR(200) NULL,
  `create_time` DATETIME NULL,
  `amount` DECIMAL(21, 10) NULL,
  `num` VARCHAR(1020) NULL
) ENGINE=OLAP
UNIQUE KEY(`id`, `create_time`)
COMMENT 'OLAP'
DISTRIBUTED BY HASH(`id`) BUCKETS 10
PROPERTIES (
"replication_allocation" = "tag.location.default: 1"
);

SELECT count(id) FROM ( SELECT id, sum(amount) AS am, count(DISTINCT num) AS num FROM test_tbl GROUP BY id ) s1 WHERE 1 = 1 AND am >= 10 AND am <= 1000000 AND num >= 2 AND num <= 10000;

20000000 records in test_tbl
with set enable_nereids_planner=true, cost 11.40s
with set enable_nereids_planner=false, cost 4.66s

Anything Else?

No response

Are you willing to submit PR?

  • Yes I am willing to submit a PR!

Code of Conduct

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

No branches or pull requests

1 participant