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 other functions to SQL query validator #3304

Merged
merged 3 commits into from
Feb 7, 2025

Conversation

ykmr1224
Copy link
Collaborator

@ykmr1224 ykmr1224 commented Feb 5, 2025

Description

  • Add other(uncategorized) functions to SQL query validator
  • Those functions were originally not covered since it was not listed in categorized list , but actually documented in full list.

Related Issues

Resolves #3237

Check List

  • New functionality includes testing.
  • New functionality has been documented.
  • New functionality has javadoc added.
  • New functionality has a user manual doc added.
  • API changes companion pull request created.
  • Commits are signed per the DCO using --signoff.
  • Public documentation issue/PR created.

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.

@ykmr1224 ykmr1224 force-pushed the uncategorized-functions branch from f414ef9 to 3d69b56 Compare February 5, 2025 23:40
Signed-off-by: Tomoyuki Morita <moritato@amazon.com>
@@ -422,6 +423,51 @@ public enum FunctionType {
"posexplode",
"posexplode_outer",
"stack"))
.put(
UNCATEGORIZED,
Copy link
Collaborator

Choose a reason for hiding this comment

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

could u explain term "UNCATEGORIZED", why certain functions are classified as UNCATEGORIZED?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Those functions were originally not covered since it was not listed in categorized list, but actually documented in full list. That's why I named it as uncategorized. (current categories are coming from the categorized list)

Signed-off-by: Tomoyuki Morita <moritato@amazon.com>
Signed-off-by: Tomoyuki Morita <moritato@amazon.com>
@ykmr1224
Copy link
Collaborator Author

ykmr1224 commented Feb 7, 2025

Renamed Uncategorized function to Other function based on the discussion with @penghuo

@ykmr1224 ykmr1224 changed the title Add uncategorized functions to SQL query validator Add other functions to SQL query validator Feb 7, 2025
@ykmr1224 ykmr1224 merged commit 4b60ab6 into opensearch-project:main Feb 7, 2025
15 checks passed
opensearch-trigger-bot bot pushed a commit that referenced this pull request Feb 7, 2025
* Add uncategorized functions to SQL query validator

Signed-off-by: Tomoyuki Morita <moritato@amazon.com>

* Fix variable name

Signed-off-by: Tomoyuki Morita <moritato@amazon.com>

* Fix name from uncategorized to other

Signed-off-by: Tomoyuki Morita <moritato@amazon.com>

---------

Signed-off-by: Tomoyuki Morita <moritato@amazon.com>
(cherry picked from commit 4b60ab6)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
ykmr1224 pushed a commit that referenced this pull request Feb 10, 2025
* Add uncategorized functions to SQL query validator



* Fix variable name



* Fix name from uncategorized to other



---------


(cherry picked from commit 4b60ab6)

Signed-off-by: Tomoyuki Morita <moritato@amazon.com>
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport 2.x enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG][async-query] named_struct is considered as UDF and raise validation error
3 participants