Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Modify typeof operator grammar and add support for ArrayList #4523

Merged
merged 3 commits into from
May 9, 2024

Conversation

kkondaka
Copy link
Collaborator

@kkondaka kkondaka commented May 9, 2024

Description

Modify typeof operator to accept the types without double quotes.
For example, after this change the expression with typeof operator will be like this
/field typeof "integer" to /field typeof integer

Also, modified to support check for "array" to return true for ArrayList too

Issues Resolved

Resolves #[Issue number to be closed when this PR is merged]

Check List

  • [X ] New functionality includes testing.
  • New functionality has a documentation issue. Please link to it in this PR.
    • New functionality has javadoc added
  • [X ] Commits are signed with a real name per the DCO

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

Signed-off-by: Krishna Kondaka <krishkdk@dev-dsk-krishkdk-2c-bd29c437.us-west-2.amazon.com>
Krishna Kondaka added 2 commits May 9, 2024 19:12
Signed-off-by: Krishna Kondaka <krishkdk@dev-dsk-krishkdk-2c-bd29c437.us-west-2.amazon.com>
Signed-off-by: Krishna Kondaka <krishkdk@dev-dsk-krishkdk-2c-bd29c437.us-west-2.amazon.com>
@@ -91,7 +91,7 @@ relationalOperator
;

typeOfOperatorExpression
: JsonPointer TYPEOF String
: JsonPointer TYPEOF DataTypes
Copy link
Member

Choose a reason for hiding this comment

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

This is a nice change!

@kkondaka kkondaka merged commit fbe059f into opensearch-project:main May 9, 2024
46 of 47 checks passed
@kkondaka kkondaka deleted the typeof-grammar-fix branch May 13, 2024 05:50
@kkondaka kkondaka added this to the v2.8 milestone May 14, 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.

None yet

3 participants