-
Notifications
You must be signed in to change notification settings - Fork 29k
[SPARK-43483][SQL][DOCS] Adds SQL references for OFFSET clause. #41151
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
Conversation
|
ping @cloud-fan |
| org.apache.spark.sql.AnalysisException: The limit expression must evaluate to a constant value ... | ||
| org.apache.spark.sql.AnalysisException | ||
| { | ||
| "errorClass" : "_LEGACY_ERROR_TEMP_2400", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
since we are documenting this error, can we assign an official error class name to it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
BTW, is this really what the end users will see? A JSON string?
|
|
||
| -- A non-foldable expression as an input to OFFSET is not allowed. | ||
| SELECT name, age FROM person ORDER BY name OFFSET length(name); | ||
| org.apache.spark.sql.AnalysisException |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ditto
|
thanks, merging to master/3.4! |
### What changes were proposed in this pull request? Spark 3.4.0 released the new syntax: `OFFSET clause`. But the SQL reference missing the description for it. ### Why are the changes needed? Adds SQL reference for `OFFSET` clause. ### Does this PR introduce _any_ user-facing change? 'Yes'. Users could find out the SQL reference for `OFFSET` clause. ### How was this patch tested? Manual verify.     Closes #41151 from beliefer/SPARK-43483. Authored-by: Jiaan Geng <beliefer@163.com> Signed-off-by: Wenchen Fan <wenchen@databricks.com>
|
@cloud-fan @HyukjinKwon Thank you for all! |
### What changes were proposed in this pull request? Spark 3.4.0 released the new syntax: `OFFSET clause`. But the SQL reference missing the description for it. ### Why are the changes needed? Adds SQL reference for `OFFSET` clause. ### Does this PR introduce _any_ user-facing change? 'Yes'. Users could find out the SQL reference for `OFFSET` clause. ### How was this patch tested? Manual verify.     Closes apache#41151 from beliefer/SPARK-43483. Authored-by: Jiaan Geng <beliefer@163.com> Signed-off-by: Wenchen Fan <wenchen@databricks.com>
### What changes were proposed in this pull request? Spark 3.4.0 released the new syntax: `OFFSET clause`. But the SQL reference missing the description for it. ### Why are the changes needed? Adds SQL reference for `OFFSET` clause. ### Does this PR introduce _any_ user-facing change? 'Yes'. Users could find out the SQL reference for `OFFSET` clause. ### How was this patch tested? Manual verify.     Closes apache#41151 from beliefer/SPARK-43483. Authored-by: Jiaan Geng <beliefer@163.com> Signed-off-by: Wenchen Fan <wenchen@databricks.com>
### What changes were proposed in this pull request? Spark 3.4.0 released the new syntax: `OFFSET clause`. But the SQL reference missing the description for it. ### Why are the changes needed? Adds SQL reference for `OFFSET` clause. ### Does this PR introduce _any_ user-facing change? 'Yes'. Users could find out the SQL reference for `OFFSET` clause. ### How was this patch tested? Manual verify.     Closes apache#41151 from beliefer/SPARK-43483. Authored-by: Jiaan Geng <beliefer@163.com> Signed-off-by: Wenchen Fan <wenchen@databricks.com>
What changes were proposed in this pull request?
Spark 3.4.0 released the new syntax:
OFFSET clause.But the SQL reference missing the description for it.
Why are the changes needed?
Adds SQL reference for
OFFSETclause.Does this PR introduce any user-facing change?
'Yes'.
Users could find out the SQL reference for
OFFSETclause.How was this patch tested?
Manual verify.



