Skip to content

Conversation

@MitchellGale
Copy link

Description

[Describe what this change achieves]

Issues Resolved

[List any issues this PR will resolve]

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.

MitchellGale and others added 5 commits August 2, 2022 14:23
… is surrounded by same type of quote (opensearch-project#696)

Signed-off-by: mitchellg <[email protected]>

Co-authored-by: Andrew Carbonetto <[email protected]>
* Add support for highlight to parser and AstExpressionBuilder

Signed-off-by: MaxKsyunz <[email protected]>

* Add unit test for highlight in AstExpressionBuilder

Signed-off-by: MaxKsyunz <[email protected]>

* Add unit test for highlight in AstBuilderTest

Signed-off-by: MaxKsyunz <[email protected]>

* Support highlight as an Unresolved expression.

Signed-off-by: MaxKsyunz <[email protected]>

* Represent highlight as UnresolvedExpression.

Signed-off-by: MaxKsyunz <[email protected]>

* Support highlight in Analyzer.

Signed-off-by: MaxKsyunz <[email protected]>

* Treat highlight as a proper function in AST

In particular, highlightField is an expression now.

Signed-off-by: MaxKsyunz <[email protected]>

* Add support for highlight in Analyzer

HighlightFunction is converted to LogicalHighlight logical plan.

Signed-off-by: MaxKsyunz <[email protected]>

* Add a simple IT test for highlight.

Signed-off-by: MaxKsyunz <[email protected]>

* Register highlight function in the BuiltInFunctionRepository

Signed-off-by: MaxKsyunz <[email protected]>

* Partial support for highlight in physical plan.

Signed-off-by: MaxKsyunz <[email protected]>

* Add HighlightOperator.

Signed-off-by: MaxKsyunz <[email protected]>

* Highlight alpha complete.

Signed-off-by: MaxKsyunz <[email protected]>

* Initial implementation to upporting highlight('*')

Signed-off-by: forestmvey <[email protected]>

* Add support for multiple highlight calls in select statement.

Signed-off-by: forestmvey <[email protected]>

* Removed OpenSearchLogicalIndexScan highlightFields and dependencies. Improved test coverage and fixing checkstyle errors.

Signed-off-by: forestmvey <[email protected]>

* Added HighlightExpressionTest

Signed-off-by: forestmvey <[email protected]>

* Added javadocs, minor PR revisions, and fixed jacoco errors by improving coverage for OpenSearchIndexScan

Signed-off-by: forestmvey <[email protected]>

* Code cleanup, adding parsing failure tests, and adding tests for highlight acceptance as a string literal as well as qualified name.

Signed-off-by: forestmvey <[email protected]>

* Removing HighlightOperator functionality and unnecessary visitHighlight call in PhysicalPlanNodeVisitor..

Signed-off-by: forestmvey <[email protected]>

* Adding highlight function to functions.rst and removing unecessary function call in OpenSearchIndexScan.

Signed-off-by: forestmvey <[email protected]>

* Change highlight fields returned format to array list. Changed highlight 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 <[email protected]>

* Fix bug where invalid schema name was being used for returned highlight fields

Signed-off-by: forestmvey <[email protected]>

* Fix failing integration tests due to schema changes for highlight expression type.

Signed-off-by: forestmvey <[email protected]>

Co-authored-by: MaxKsyunz <[email protected]>
…te` into new branch.

Co-authored-by: Mitchell Gale <[email protected]>

Signed-off-by: Yury Fridlyand <[email protected]>
@MitchellGale
Copy link
Author

Used for testing of DCO. Never needed. Real PR for this PR test is #103.

@Yury-Fridlyand Yury-Fridlyand deleted the dev-dbg-mitchell-branch branch September 9, 2022 21:11
andy-k-improving pushed a commit that referenced this pull request Nov 16, 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.

4 participants