Skip to content

Dev match_phrase_prefix #186 required - #68

Merged
MaxKsyunz merged 6 commits into
dev-match_phrase_prefix-#186from
dev-match_phrase_prefix-#186-required
Jun 7, 2022
Merged

MaxKsyunz merged 6 commits into
dev-match_phrase_prefix-#186from
dev-match_phrase_prefix-#186-required

Conversation

@MaxKsyunz

@MaxKsyunz MaxKsyunz commented Jun 4, 2022 •

Copy link
Copy Markdown

Description

Add support to SQL for match_phrase_prefix query function with required parameters only.

Example query:
SELECT * FROM banks WHERE match_phrase_prefix(Address, "Str")

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.

@codecov

codecov Bot commented Jun 4, 2022 •

Copy link
Copy Markdown

Codecov Report

Merging #68 (bb946c2) into dev-match_phrase_prefix-#186 (26058b8) will increase coverage by 0.00%.
The diff coverage is 100.00%.

@@                       Coverage Diff                       @@
##             dev-match_phrase_prefix-#186      #68   +/-   ##
===============================================================
  Coverage                           97.66%   97.66%           
- Complexity                           2743     2747    +4     
===============================================================
  Files                                 268      269    +1     
  Lines                                6772     6781    +9     
  Branches                              435      435           
===============================================================
+ Hits                                 6614     6623    +9     
  Misses                                157      157           
  Partials                                1        1           
Flag Coverage Δ
sql-engine 97.66% <100.00%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
...arch/storage/script/filter/FilterQueryBuilder.java 100.00% <ø> (ø)
...c/main/java/org/opensearch/sql/expression/DSL.java 100.00% <100.00%> (ø)
...h/sql/expression/function/BuiltinFunctionName.java 100.00% <100.00%> (ø)
...h/sql/expression/function/OpenSearchFunctions.java 100.00% <100.00%> (ø)
...ilter/lucene/relevance/MatchPhrasePrefixQuery.java 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 26058b8...bb946c2. Read the comment docs.

Signed-off-by: MaxKsyunz <[email protected]>
@MaxKsyunz MaxKsyunz changed the title Dev match phrase prefix #186 required Dev match_phrase_prefix #186 required Jun 6, 2022
@MaxKsyunz
MaxKsyunz requested a review from a team June 6, 2022 21:18
public static final int MATCH_MAX_NUM_PARAMETERS = 12;
public static final int MATCH_PHRASE_MAX_NUM_PARAMETERS = 3;
public static final int MIN_NUM_PARAMETERS = 2;
private static final int MATCH_PHRASE_PREFIX_MAX_NUM_PARAMETERS = 0;

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

why is this one private?

@MaxKsyunz
MaxKsyunz merged commit 0aec6ed into dev-match_phrase_prefix-#186 Jun 7, 2022
@Yury-Fridlyand
Yury-Fridlyand deleted the dev-match_phrase_prefix-#186-required branch January 12, 2023 19:45
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