Skip to content

[AMORO-4557][AMS] Support parenthesized conditions in self-optimizing.filter - #4558

Open
owenmonn wants to merge 1 commit into
apache:masterfrom
owenmonn:filter-parentheses
Open

owenmonn wants to merge 1 commit into
apache:masterfrom
owenmonn:filter-parentheses

Conversation

@owenmonn

@owenmonn owenmonn commented Dec 2, 2026

Copy link
Copy Markdown
Contributor

Why are the changes needed?

Close #4557.

Brief change log

  • ExpressionUtil: unwrap a Parenthesis node and convert the condition inside it.
  • TestExpressionUtil: a parenthesized AND inside OR.

How was this patch tested?

  • Add some test cases that check the changes thoroughly including negative and positive cases if possible

  • Add screenshots for manual tests if appropriate

  • Run test locally before making a pull request

Documentation

  • Does this pull request introduce a new feature? no
  • If yes, how is the feature documented? not applicable

jsqlparser wraps a parenthesized condition in a Parenthesis node, which the
converter rejected as unsupported, so a filter such as
a < 1 OR (a = 1 AND b < 2) failed. Unwrap it.
@owenmonn owenmonn changed the title [AMORO-4557] Support parenthesized conditions in self-optimizing.filter [AMORO-4557][AMS] Support parenthesized conditions in self-optimizing.filter Dec 2, 2026

This branch has not been deployed

No deployments
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.

[Improvement]: Support parenthesized conditions in self-optimizing.filter

1 participant