Skip to content

Support match_phrase filter function in SQL and PPL#48

Merged
MaxKsyunz merged 50 commits intointeg-match_phrase-#185from
dev-match_phrase-#185
May 10, 2022
Merged

Support match_phrase filter function in SQL and PPL#48
MaxKsyunz merged 50 commits intointeg-match_phrase-#185from
dev-match_phrase-#185

Conversation

@MaxKsyunz
Copy link
Copy Markdown

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
Signed-off-by: MaxKsyunz <maxk@bitquilltech.com>
Signed-off-by: MaxKsyunz <maxk@bitquilltech.com>
Signed-off-by: Yury Fridlyand <yuryf@bitquilltech.com>
Signed-off-by: MaxKsyunz <maxk@bitquilltech.com>
…ents.

Signed-off-by: Yury Fridlyand <yuryf@bitquilltech.com>
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 <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: Yury Fridlyand <yuryf@bitquilltech.com>
Signed-off-by: Yury Fridlyand <yuryf@bitquilltech.com>
Signed-off-by: MaxKsyunz <maxk@bitquilltech.com>
Signed-off-by: Yury Fridlyand <yuryf@bitquilltech.com>
Create a parametrized test for PPLSyntax parser.

Signed-off-by: MaxKsyunz <maxk@bitquilltech.com>
…x-min

Add match_phrase and slop optional parameter to SQL parser
Signed-off-by: Yury Fridlyand <yuryf@bitquilltech.com>
Signed-off-by: Yury Fridlyand <yuryf@bitquilltech.com>
Signed-off-by: Yury Fridlyand <yuryf@bitquilltech.com>
Signed-off-by: Yury Fridlyand <yuryf@bitquilltech.com>
…for `MATCH` are also updated.

Signed-off-by: Yury Fridlyand <yuryf@bitquilltech.com>
Signed-off-by: Yury Fridlyand <yuryf@bitquilltech.com>
Signed-off-by: Yury Fridlyand <yuryf@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>
1. Use PPL instead of SQL as samples.
2. Use data that doctest runs with.

Signed-off-by: MaxKsyunz <maxk@bitquilltech.com>
@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 <maxk@bitquilltech.com>
Signed-off-by: MaxKsyunz <maxk@bitquilltech.com>
Changed testMatchPhraseFunction and testMathPhraseWithSlop to use
data source that exercises match_phrase.

Signed-off-by: MaxKsyunz <maxk@bitquilltech.com>
1. final variables for all constants.
2. Better name for getFunctionResolver -> getRelevanceFunctionResolver

Signed-off-by: MaxKsyunz <maxk@bitquilltech.com>
Signed-off-by: MaxKsyunz <maxk@bitquilltech.com>
Signed-off-by: MaxKsyunz <maxk@bitquilltech.com>
MaxKsyunz added 2 commits May 9, 2022 19:01
Signed-off-by: MaxKsyunz <maxk@bitquilltech.com>
Signed-off-by: MaxKsyunz <maxk@bitquilltech.com>
@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.

4 participants