-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Add support for FETCH/OFFSET syntax #1
Comments
Certainly, we want to support standard syntax. |
Yes, that would fall out naturally from having LIMIT be an alternate form of FETCH FIRST/NEXT.
Agreed. That's confusing. Let's not add it for now. We can always expand later. |
Some additional details from the spec:
|
There are two major differences between LIMIT and FETCH:
The former difference doesn't bother me, but I find the latter difference hard to justify. |
Let's start with strict compliance. We can always relax later if necessary. |
Fetch was added in 310. Offset still remains to be implemented. |
Offset was added in #732, will be available in Presto 311. |
|
Can you elaborate? It's unlikely that queries that run in other systems will run out of the box in Presto unless they are very simple, anyway. There are subtle differences in dialects, support for certain SQL features and available functions. |
https://cloud.google.com/bigquery/docs/reference/standard-sql/query-syntax edit: seems as though this is standard with impala as well |
In terms of syntax, this is what the spec says:
And
The text was updated successfully, but these errors were encountered: