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

Add parsing support for JSON Search Functions #9990

Merged
merged 13 commits into from Apr 5, 2022

Conversation

K-Kumar-01
Copy link
Contributor

@K-Kumar-01 K-Kumar-01 commented Mar 27, 2022

Description

Add the parsing support for JSON search functions. More details here

Related Issue(s)

#8604
#4099

Checklist

  • Should this PR be backported?No
  • Tests were added or are not required
  • Documentation was added or is not required

Deployment Notes

Add the structs, parsing, formatting and tests
JSON_SEARCH and value MEMBER OF not supported yet

Signed-off-by: Kushal Kumar <kushalkumargupta4@gmail.com>
Signed-off-by: Kushal Kumar <kushalkumargupta4@gmail.com>
@K-Kumar-01 K-Kumar-01 added Type: Enhancement Logical improvement (somewhere between a bug and feature) Component: Query Serving release notes labels Mar 27, 2022
update parser
update formatting

Signed-off-by: Kushal Kumar <kushalkumargupta4@gmail.com>
Signed-off-by: Kushal Kumar <kushalkumargupta4@gmail.com>
Signed-off-by: Kushal Kumar <kushalkumargupta4@gmail.com>
Signed-off-by: Kushal Kumar <kushalkumargupta4@gmail.com>
Signed-off-by: Kushal Kumar <kushalkumargupta4@gmail.com>
@K-Kumar-01 K-Kumar-01 marked this pull request as ready for review March 29, 2022 15:20
Signed-off-by: Kushal Kumar <kushalkumargupta4@gmail.com>
Copy link
Member

@GuptaManan100 GuptaManan100 left a comment

Choose a reason for hiding this comment

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

We should also add tests for the shorthands -> and ->>

go/vt/sqlparser/sql.y Outdated Show resolved Hide resolved
go/vt/sqlparser/sql.y Outdated Show resolved Hide resolved
go/vt/sqlparser/keywords.go Outdated Show resolved Hide resolved
Signed-off-by: Kushal Kumar <kushalkumargupta4@gmail.com>
Signed-off-by: Kushal Kumar <kushalkumargupta4@gmail.com>
Signed-off-by: Kushal Kumar <kushalkumargupta4@gmail.com>
Signed-off-by: Kushal Kumar <kushalkumargupta4@gmail.com>
Signed-off-by: Kushal Kumar <kushalkumargupta4@gmail.com>
@GuptaManan100 GuptaManan100 merged commit d7cd8cc into vitessio:main Apr 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component: Query Serving Type: Enhancement Logical improvement (somewhere between a bug and feature)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants