Skip to content

[fix](Nereids) AnalyzeTblStmt should fail when disabling fallback_to_original_planner#34532

Closed
zhangbutao wants to merge 1 commit intoapache:masterfrom
zhangbutao:AnalyzeTblStmt_should_fali_in_nereids
Closed

[fix](Nereids) AnalyzeTblStmt should fail when disabling fallback_to_original_planner#34532
zhangbutao wants to merge 1 commit intoapache:masterfrom
zhangbutao:AnalyzeTblStmt_should_fali_in_nereids

Conversation

@zhangbutao
Copy link
Copy Markdown
Contributor

Proposed changes

#32882 disable fallback_to_original_planner by default. I think we have not Implemented AnalyzeTblStmt syntax in Nereids. Before we implement it in Nereids, We need to throw ex when turning off fallback_to_original_planner.

Further comments

If this is a relatively large or complex change, kick off the discussion at dev@doris.apache.org by explaining why you chose the solution you did and what alternatives you considered, etc...

@doris-robot
Copy link
Copy Markdown

Thank you for your contribution to Apache Doris.
Don't know what should be done next? See How to process your PR

Since 2024-03-18, the Document has been moved to doris-website.
See Doris Document.

@zhangbutao
Copy link
Copy Markdown
Contributor Author

run buildall

@zhangbutao
Copy link
Copy Markdown
Contributor Author

@morrySnow Could you help to check this fix? Thx.

|| s instanceof CreateTableAsSelectStmt
|| s instanceof CreateTableStmt)) {
|| s instanceof CreateTableStmt
|| s instanceof AnalyzeTblStmt)) {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

analyze table do not impl in Nereids, so should not failed even if disabling fallback_to_original_planner

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok. It just makes me confused that analyze table can be sucessful but actually it not be Implemented in Nereids.

set enable_nereids_planner=true;
set enable_fallback_to_original_planner=false;

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

BTW, Should we impl analyze table in Neredis side in the future?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

too many statement has not been impl in Nereids.
All these statements will fall back to Legacy planner automaticly even if disable enable_fallback_to_original_planner

Should we impl analyze table in Neredis side in the future

Yes, We should impl ALL statement in Nereids in feature.

Feel free to impl them in Nereids if you're willing.😁

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure, i will try to impl partial statements in Nereids if i have any bandwidth. 😃
Thanks.

@morrySnow morrySnow closed this May 10, 2024
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

Successfully merging this pull request may close these issues.

3 participants