Uh oh!
There was an error while loading. Please reload this page.
[clean](planner)row policy removes dependency on the old optimizer - #51122
Merged
Conversation
hello-stephen
commented
May 21, 2025
Contributor
Thank you for your contribution to Apache Doris. Please clearly describe your PR:
|
zddr
commented
May 21, 2025
ContributorAuthor
run buildall |
zddr
marked this pull request as draft
May 21, 2025 10:00
doris-robot
commented
May 21, 2025
TPC-H: Total hot run time: 33963 ms |
doris-robot
commented
May 21, 2025
TPC-DS: Total hot run time: 186337 ms |
doris-robot
commented
May 21, 2025
ClickBench: Total hot run time: 29.76 s |
zddr
marked this pull request as ready for review
May 22, 2025 02:52
Contributor
There was a problem hiding this comment.
Pull Request Overview
This PR removes the dependency on the old optimizer for row policy processing and renames the Expr types to Expression. Key changes include:
- Removing CreatePolicyStmt-based logic and replacing it with NereidsParser and CreatePolicyCommand.
- Updating row policy classes to use the new Expression type instead of Expr.
- Removing legacy row policy rewriting and merging logic from various components.
Reviewed Changes
Copilot reviewed 10 out of 10 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| fe/fe-core/src/test/java/org/apache/doris/utframe/TestWithFeService.java | Replaced CreatePolicyStmt usage with NereidsParser-based CreatePolicyCommand. |
| fe/fe-core/src/test/java/org/apache/doris/policy/PolicyTest.java | Updated Expression type usage for row policy predicates. |
| fe/fe-core/src/test/java/org/apache/doris/alter/AlterTest.java | Transitioned row policy creation logic to use NereidsParser. |
| fe/fe-core/src/main/java/org/apache/doris/qe/DdlExecutor.java | Removed legacy CreatePolicyStmt handling. |
| fe/fe-core/src/main/java/org/apache/doris/policy/RowPolicy.java | Modified to use Expression type and updated getter logic for wherePredicate. |
| fe/fe-core/src/main/java/org/apache/doris/policy/PolicyMgr.java | Removed legacy row policy merging code. |
| fe/fe-core/src/main/java/org/apache/doris/policy/Policy.java | Removed dependency on CreatePolicyStmt for policy creation. |
| fe/fe-core/src/main/java/org/apache/doris/nereids/trees/plans/commands/CreatePolicyCommand.java | Updated to no longer translate legacy expressions. |
| fe/fe-core/src/main/java/org/apache/doris/analysis/StmtRewriter.java | Eliminated row policy rewriting logic for the old planner. |
| fe/fe-core/src/main/java/org/apache/doris/analysis/CreatePolicyStmt.java | Removed legacy properties and analysis logic; toSql now returns an empty string. |
Uh oh!
There was an error while loading. Please reload this page.
zddr
commented
May 22, 2025
ContributorAuthor
run buildall |
doris-robot
commented
May 22, 2025
TPC-H: Total hot run time: 34515 ms |
doris-robot
commented
May 22, 2025
TPC-DS: Total hot run time: 192831 ms |
doris-robot
commented
May 22, 2025
ClickBench: Total hot run time: 28.64 s |
zddr
commented
May 22, 2025
ContributorAuthor
run cloud_p0 |
starocean999
approved these changes
May 22, 2025
Contributor
PR approved by at least one committer and no changes requested. |
Contributor
PR approved by anyone and no changes requested. |
morrySnow
approved these changes
May 22, 2025
koarz pushed a commit
to koarz/doris
that referenced
this pull request
Jun 4, 2025
…pache#51122) - Change "Expr" to "Expression" in RowPolicy - Remove the logic of rewriting using row policy in the old optimizer - Remove the logic for creating row policies based on CreatePolicyStmt
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for freeto join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What problem does this PR solve?
Issue Number: close #xxx
Related PR: #xxx
Problem Summary:
row policy removes dependency on the old optimizer
Release note
None
Check List (For Author)
Test
Behavior changed:
Does this need documentation?
Check List (For Reviewer who merge this PR)