Skip to content

Support Order of OFFSET and LIMIT#385

Closed
yuval-illumex wants to merge 7 commits intoapache:mainfrom
illumex-ai:offset
Closed

Support Order of OFFSET and LIMIT#385
yuval-illumex wants to merge 7 commits intoapache:mainfrom
illumex-ai:offset

Conversation

@yuval-illumex
Copy link
Contributor

Fix #384

Support OFFSET LIMIT and LIMIT OFFSET

@alamb
Copy link
Contributor

alamb commented Dec 17, 2021

Note these is a similar PR from @QuantumBear #370

@coveralls
Copy link

coveralls commented Dec 17, 2021

Pull Request Test Coverage Report for Build 1607242568

  • 12 of 12 (100.0%) changed or added relevant lines in 2 files are covered.
  • 452 unchanged lines in 4 files lost coverage.
  • Overall coverage increased (+0.1%) to 90.154%

Files with Coverage Reduction New Missed Lines %
tests/sqlparser_common.rs 19 98.94%
src/ast/ddl.rs 22 82.19%
src/ast/mod.rs 149 75.97%
src/parser.rs 262 84.23%
Totals Coverage Status
Change from base Build 1582509948: 0.1%
Covered Lines: 6620
Relevant Lines: 7343

💛 - Coveralls

@alamb alamb changed the title Fix #384 - Support Order of OFFSET and LIMIT Support Order of OFFSET and LIMIT Feb 5, 2022
} else {
None
};
for _x in 0..2 {
Copy link
Contributor

Choose a reason for hiding this comment

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

as written this will also parse LIMIT LIMIT and OFFSET OFFSET I think.

Copy link
Contributor

@alamb alamb left a comment

Choose a reason for hiding this comment

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

As I don't have permissions to fix this PR, I made a new one based on this change: #413

Thanks for the contribution @yuval-illumex and I am sorry for the delay in reviewing

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.

Trino - LIMIT and OFFSET order is diffrent

3 participants