Skip to content

Conversation

@MaxKsyunz
Copy link

Description

  1. Support match_phrase filter function in SQL.
  2. Support match_phrase filter function in PPL.

Issues Resolved

Resolves #185 except for backwards compatibility with the legacy SQL engine. This will be addressed in a separate commit.

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 30 commits April 22, 2022 04:42
Added a couple test for match_test in PPL.
The tests are currently @ignore'd until more of the issue is complete.

Signed-off-by: MaxKsyunz <[email protected]>
Signed-off-by: MaxKsyunz <[email protected]>
Signed-off-by: MaxKsyunz <[email protected]>
Signed-off-by: Yury Fridlyand <[email protected]>
Signed-off-by: Yury Fridlyand <[email protected]>
Create a parametrized test for PPLSyntax parser.

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

Add match_phrase and slop optional parameter to SQL parser
Signed-off-by: Yury Fridlyand <[email protected]>
Signed-off-by: Yury Fridlyand <[email protected]>
…for `MATCH` are also updated.

Signed-off-by: Yury Fridlyand <[email protected]>
Signed-off-by: Yury Fridlyand <[email protected]>
Signed-off-by: MaxKsyunz <[email protected]>
1. Use PPL instead of SQL as samples.
2. Use data that doctest runs with.

Signed-off-by: MaxKsyunz <[email protected]>
@MaxKsyunz MaxKsyunz requested review from a team, Yury-Fridlyand, acarbonetto, forestmvey and raymond-lum and removed request for acarbonetto May 6, 2022 09:14
MaxKsyunz added 6 commits May 9, 2022 16:55
Signed-off-by: MaxKsyunz <[email protected]>
Changed testMatchPhraseFunction and testMathPhraseWithSlop to use
data source that exercises match_phrase.

Signed-off-by: MaxKsyunz <[email protected]>
1. final variables for all constants.
2. Better name for getFunctionResolver -> getRelevanceFunctionResolver

Signed-off-by: MaxKsyunz <[email protected]>
@MaxKsyunz MaxKsyunz merged commit 0127ee6 into integ-match_phrase-#185 May 10, 2022
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.

5 participants