You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@asterixdb.apache.org by "Ian Maxon (Jira)" <ji...@apache.org> on 2025/03/29 20:17:00 UTC

[jira] [Assigned] (ASTERIXDB-3588) Allow limit after offset

     [ https://issues.apache.org/jira/browse/ASTERIXDB-3588?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ian Maxon reassigned ASTERIXDB-3588:
------------------------------------

    Assignee: Janhavi Tripurwar

> 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
>            Assignee: 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)