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 Highlight In SQL #717

Merged
merged 24 commits into from
Aug 5, 2022

Conversation

forestmvey
Copy link
Collaborator

Description

Support highlighting function in SQL query engine.

Issues Resolved

Github Issue: 636

Check List

  • New functionality includes testing.
    • All tests pass, including unit test, integration test and doctest
  • New functionality has been documented.
    • New functionality has javadoc added
    • New functionality has user manual doc added
  • Commits are signed per the DCO using --signoff

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.

MaxKsyunz and others added 20 commits July 26, 2022 09:29
Signed-off-by: MaxKsyunz <maxk@bitquilltech.com>
Signed-off-by: MaxKsyunz <maxk@bitquilltech.com>
Signed-off-by: MaxKsyunz <maxk@bitquilltech.com>
Signed-off-by: MaxKsyunz <maxk@bitquilltech.com>
Signed-off-by: MaxKsyunz <maxk@bitquilltech.com>
Signed-off-by: MaxKsyunz <maxk@bitquilltech.com>
In particular, highlightField is an expression now.

Signed-off-by: MaxKsyunz <maxk@bitquilltech.com>
HighlightFunction is converted to LogicalHighlight logical plan.

Signed-off-by: MaxKsyunz <maxk@bitquilltech.com>
Signed-off-by: MaxKsyunz <maxk@bitquilltech.com>
Signed-off-by: MaxKsyunz <maxk@bitquilltech.com>
Signed-off-by: MaxKsyunz <maxk@bitquilltech.com>
Signed-off-by: MaxKsyunz <maxk@bitquilltech.com>
Signed-off-by: MaxKsyunz <maxk@bitquilltech.com>
Signed-off-by: forestmvey <forestv@bitquilltech.com>
Signed-off-by: forestmvey <forestv@bitquilltech.com>
…Improved test coverage and fixing checkstyle errors.

Signed-off-by: forestmvey <forestv@bitquilltech.com>
Signed-off-by: forestmvey <forestv@bitquilltech.com>
…ing coverage for OpenSearchIndexScan

Signed-off-by: forestmvey <forestv@bitquilltech.com>
…light acceptance as a string literal as well as qualified name.

Signed-off-by: forestmvey <forestv@bitquilltech.com>
…ht call in PhysicalPlanNodeVisitor..

Signed-off-by: forestmvey <forestv@bitquilltech.com>
@forestmvey forestmvey requested a review from a team as a code owner August 1, 2022 17:48
Copy link
Collaborator

@dai-chen dai-chen left a comment

Choose a reason for hiding this comment

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

I'm wondering are we sending another PR for user manual separately?

…nction call in OpenSearchIndexScan.

Signed-off-by: forestmvey <forestv@bitquilltech.com>
@forestmvey
Copy link
Collaborator Author

forestmvey commented Aug 3, 2022

I'm wondering are we sending another PR for user manual separately?

I added highlight to functions.rst under commit: 232b19f5924d2c46fd08b9d60abadb0d207ad016. Documentation website will be handled in a separate PR.

…ght all and wildcard to unsupported to open up output formatting changes for multiple returned highlight fields. Change tests for updated coverage and disable highlight all and wildcard tests.

Signed-off-by: forestmvey <forestv@bitquilltech.com>
@forestmvey
Copy link
Collaborator Author

Under commit 9fbea3072bbf6cd3f89851a20344eecf720ac219 I have changed the output format to be more useable to the end user. See revisions to functions.rst for new output format. I have also changed highlight all, and wildcard to unsupported for this version as we want to iterate on the output format for multiple returned highlight fields.

dai-chen
dai-chen previously approved these changes Aug 4, 2022
acarbonetto
acarbonetto previously approved these changes Aug 4, 2022
Copy link
Collaborator

@acarbonetto acarbonetto left a comment

Choose a reason for hiding this comment

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

LGTM

…ht fields

Signed-off-by: forestmvey <forestv@bitquilltech.com>
…ression type.

Signed-off-by: forestmvey <forestv@bitquilltech.com>
@penghuo penghuo merged commit 8f1b31d into opensearch-project:main Aug 5, 2022
@MaxKsyunz MaxKsyunz added enhancement New feature or request SQL full-text labels Sep 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request SQL
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants