[ https://issues.apache.org/jira/browse/ASTERIXDB-3588?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ian Maxon updated ASTERIXDB-3588: --------------------------------- Labels: triaged (was: ) > Allow limit after offset > ------------------------ > > Key: ASTERIXDB-3588 > URL: https://issues.apache.org/jira/browse/ASTERIXDB-3588 > Project: Apache AsterixDB > Issue Type: Improvement > Reporter: Janhavi Tripurwar > Priority: Major > Labels: triaged > > Currently, we return a syntax error when LIMIT is placed after OFFSET. This > is valid syntax and should be allowed. > Example: > The following query works: > {code:java} > SELECT id FROM ds WHERE region = 'US' LIMIT 5 OFFSET 1;{code} > And this query fails with {_}syntax error{_}: > {code:java} > SELECT id FROM ds WHERE region = 'US' OFFSET 1 LIMIT 5;{code} -- This message was sent by Atlassian Jira (v8.20.10#820010)