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

[Backport 2.x] Add Support for Nested Function in Order By Clause #1794

Merged
merged 1 commit into from
Jun 28, 2023

Conversation

opensearch-trigger-bot[bot]
Copy link
Contributor

Backport 3302ec8 from #1789

@codecov
Copy link

codecov bot commented Jun 27, 2023

Codecov Report

Merging #1794 (078e884) into 2.x (e9a009b) will increase coverage by 0.00%.
The diff coverage is 100.00%.

@@            Coverage Diff            @@
##                2.x    #1794   +/-   ##
=========================================
  Coverage     97.34%   97.34%           
- Complexity     4409     4417    +8     
=========================================
  Files           388      388           
  Lines         10940    10956   +16     
  Branches        773      776    +3     
=========================================
+ Hits          10649    10665   +16     
  Misses          284      284           
  Partials          7        7           
Flag Coverage Δ
sql-engine 97.34% <100.00%> (+<0.01%) ⬆️

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

Impacted Files Coverage Δ
.../org/opensearch/sql/sql/parser/AstSortBuilder.java 100.00% <ø> (ø)
...va/org/opensearch/sql/analysis/NestedAnalyzer.java 100.00% <100.00%> (ø)
...earch/storage/scan/OpenSearchIndexScanBuilder.java 100.00% <100.00%> (ø)
...arch/storage/script/filter/lucene/LuceneQuery.java 100.00% <100.00%> (ø)
...ensearch/storage/script/sort/SortQueryBuilder.java 100.00% <100.00%> (ø)

* Add Support for Nested Function in Order By Clause (#280)

* Adding order by clause support for nested function.

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

* Adding test coverage for nested in ORDER BY clause.

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

* Added nested function validation to NestedAnalyzer.

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

---------

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

* Adding semantic check for missing arguments in function and unit test.

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

---------

Signed-off-by: forestmvey <[email protected]>
(cherry picked from commit 3302ec8)
@forestmvey forestmvey force-pushed the backport/backport-1789-to-2.x branch from fccfe6e to 078e884 Compare June 27, 2023 22:26
@forestmvey forestmvey merged commit be164e8 into 2.x Jun 28, 2023
@forestmvey forestmvey deleted the backport/backport-1789-to-2.x branch June 28, 2023 14:33
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.

3 participants