airborne12 opened a new pull request, #59747:
URL: https://github.com/apache/doris/pull/59747
### What problem does this PR solve?
Issue Number: close #xxx
Related PR: #59394
Problem Summary:
Per HubSpot specification requirement #5, the search DSL should only
recognize uppercase `AND`, `OR`, `NOT` as boolean operators. Previously,
lowercase `and`, `or`, `not` were also treated as operators, which does not
conform to the specification.
This PR makes the boolean operators case-sensitive:
- Only uppercase `AND`, `OR`, `NOT` are recognized as operators
- Lowercase `and`, `or`, `not` are now treated as regular search terms
- Using lowercase operators in DSL will result in a parse error
### Release note
Make search DSL boolean operators (AND/OR/NOT) case-sensitive to conform to
HubSpot specification.
### Check List (For Author)
- Test
- [x] Regression test
- [x] 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:
- [x] Yes. Lowercase `and`, `or`, `not` are no longer recognized as
operators in search DSL. Users must use uppercase `AND`, `OR`, `NOT`.
- 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
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]