Skip to content

Conversation

@englefly
Copy link
Contributor

@englefly englefly commented Nov 25, 2024

What problem does this PR solve?

And/or expressions are represented by binary trees. The depth of the tree causes stack overflow in recursive program calls. To solve this problem, this pr will flatten the binary tree when processing and/or, reducing the number of recursions. At the same time, we also rewrite some recursive programs into non-recursive forms to avoid stack overflow.

Issue Number: close #xxx

Related PR: #xxx

Problem Summary:

Release note

None

Check List (For Author)

  • Test

    • Regression test
    • Unit Test
    • Manual test (add detailed scripts or steps below)
    • No need to test or manual test. Explain why:
      • This is a refactor/code format and no logic has been changed.
      • Previous test can cover this change.
      • No code files have been changed.
      • Other reason
  • Behavior changed:

    • No.
    • Yes.
  • Does this need documentation?

    • No.
    • Yes.

Check List (For Reviewer who merge this PR)

  • Confirm the release note
  • Confirm test cases
  • Confirm document
  • Add branch pick label

@doris-robot
Copy link

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

Please clearly describe your PR:

  1. What problem was fixed (it's best to include specific error reporting information). How it was fixed.
  2. Which behaviors were modified. What was the previous behavior, what is it now, why was it modified, and what possible impacts might there be.
  3. What features were added. Why was this function added?
  4. Which code was refactored and why was this part of the code refactored?
  5. Which functions were optimized and what is the difference before and after the optimization?

@englefly
Copy link
Contributor Author

run buildall

@englefly englefly marked this pull request as draft November 25, 2024 13:13
@englefly
Copy link
Contributor Author

run buildall

@englefly
Copy link
Contributor Author

run buildall

2 similar comments
@englefly
Copy link
Contributor Author

run buildall

@englefly
Copy link
Contributor Author

run buildall

@englefly englefly marked this pull request as ready for review November 27, 2024 14:29
@englefly
Copy link
Contributor Author

run buildall

3 similar comments
@englefly
Copy link
Contributor Author

run buildall

@englefly
Copy link
Contributor Author

run buildall

@englefly
Copy link
Contributor Author

run buildall

@englefly
Copy link
Contributor Author

run buildall

@englefly
Copy link
Contributor Author

run buildall

@englefly
Copy link
Contributor Author

run buildall

@englefly
Copy link
Contributor Author

run compile

@englefly
Copy link
Contributor Author

run buildall

@englefly
Copy link
Contributor Author

run cloud_p0

@github-actions github-actions bot added the approved Indicates a PR has been approved by one committer. label Nov 30, 2024
@github-actions
Copy link
Contributor

PR approved by at least one committer and no changes requested.

@github-actions
Copy link
Contributor

PR approved by anyone and no changes requested.

Copy link
Member

@eldenmoon eldenmoon left a comment

Choose a reason for hiding this comment

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

lgtm

@englefly englefly merged commit 42a7734 into apache:master Nov 30, 2024
15 of 16 checks passed
924060929 added a commit that referenced this pull request Feb 19, 2025
fix prune partitions wrong, introduced by #44574
lzyy2024 pushed a commit to lzyy2024/doris that referenced this pull request Feb 21, 2025
englefly pushed a commit that referenced this pull request Apr 24, 2025
### What problem does this PR solve?

#44574 make AND's child size may exceeds 2, need consider.
koarz pushed a commit to koarz/doris that referenced this pull request Jun 4, 2025
koarz pushed a commit to koarz/doris that referenced this pull request Jun 4, 2025
### What problem does this PR solve?

apache#44574 make AND's child size may exceeds 2, need consider.
englefly added a commit that referenced this pull request Jul 1, 2025
### What problem does this PR solve?

previous pr #44574 removes Expression.checkLimit().
this function is still useful, add it back
github-actions bot pushed a commit that referenced this pull request Jul 1, 2025
### What problem does this PR solve?

previous pr #44574 removes Expression.checkLimit().
this function is still useful, add it back
koarz pushed a commit to koarz/doris that referenced this pull request Jul 4, 2025
### What problem does this PR solve?

previous pr apache#44574 removes Expression.checkLimit().
this function is still useful, add it back
koarz pushed a commit to koarz/doris that referenced this pull request Jul 4, 2025
### What problem does this PR solve?

previous pr apache#44574 removes Expression.checkLimit().
this function is still useful, add it back
koarz pushed a commit to koarz/doris that referenced this pull request Jul 4, 2025
### What problem does this PR solve?

previous pr apache#44574 removes Expression.checkLimit().
this function is still useful, add it back
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by one committer. dev/3.1.0-merged reviewed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants