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] Pagination Phase 2: Support ORDER BY clauses and queries without FROM. #1745

Merged
merged 1 commit into from
Jun 16, 2023

Conversation

opensearch-trigger-bot[bot]
Copy link
Contributor

Backport 94d5479 from #1599

…ROM`. (#1599)

* Support `ORDER BY` clauses in pagination and queries without `FROM`.

Signed-off-by: Yury-Fridlyand <[email protected]>

* Fix IT.

Signed-off-by: Yury-Fridlyand <[email protected]>

---------

Signed-off-by: Yury-Fridlyand <[email protected]>
(cherry picked from commit 94d5479)
@codecov
Copy link

codecov bot commented Jun 15, 2023

Codecov Report

Merging #1745 (d2a82ae) into 2.x (d2a82ae) will not change coverage.
The diff coverage is n/a.

❗ Current head d2a82ae differs from pull request most recent head 29344e5. Consider uploading reports for the commit 29344e5 to get more accurate results

@@            Coverage Diff            @@
##                2.x    #1745   +/-   ##
=========================================
  Coverage     97.31%   97.31%           
  Complexity     4374     4374           
=========================================
  Files           385      385           
  Lines         10849    10849           
  Branches        763      763           
=========================================
  Hits          10558    10558           
  Misses          284      284           
  Partials          7        7           
Flag Coverage Δ
sql-engine 97.31% <0.00%> (ø)

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

}

// Queries with LIMIT clause are not supported
// Queries with LIMIT/OFFSET clauses are unsupported
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
// Queries with LIMIT/OFFSET clauses are unsupported
// Queries with LIMIT and OFFSET clauses are unsupported

Using a slash could imply LIMIT or OFFSET, rather than LIMIT and OFFSET, this will make things clearer

Copy link
Collaborator

Choose a reason for hiding this comment

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

Good idea, but it has to be applied on the original PR #1599
My next PR adds support for LIMIT, so only OFFSET remains unsupported without any ambiguity

@Yury-Fridlyand Yury-Fridlyand merged commit 7fe2fb4 into 2.x Jun 16, 2023
@Yury-Fridlyand Yury-Fridlyand deleted the backport/backport-1599-to-2.x branch June 16, 2023 16:42
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