-
Notifications
You must be signed in to change notification settings - Fork 28.9k
[SPARK-8641][SPARK-12455][SQL] Native Spark Window functions - Follow-up (docs & tests) #10402
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
|
ok to test |
|
Test build #48080 has finished for PR 10402 at commit
|
|
@hvanhovell I just created https://issues.apache.org/jira/browse/SPARK-12455 for adding doc. Can you also put SPARK-12455 in the jira title? |
|
Done. |
|
I guess you also need to put |
|
@gatorsmile extended is typically used to give an example of how the functions is used. See: https://github.com/apache/spark/blob/master/sql/catalyst/src/main/java/org/apache/spark/sql/catalyst/expressions/ExpressionDescription.java#L32-L33 I thought of adding this, but it is quite hard to create clear and concise examples for these functions. I am open to suggestions... |
|
+1 |
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.
Add some comments to explain the implementation of NTile?
|
@hvanhovell Regarding the doc, we can acknowledge them (Hive and Presto) in the scala doc. |
|
Test build #48294 has finished for PR 10402 at commit
|
…ad of concatenated strings in annotations. Minor doc changes.
|
Test build #48362 has finished for PR 10402 at commit
|
|
Test build #48363 has finished for PR 10402 at commit
|
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.
Just a clarification question. For our current code, default will never be null, right?
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.
We currently always pass a literal(null) if no default is specified. However a user can pass a null value if (s)he wants to; there is no check to prevent this.
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: This is not a problem, all code should be able to deal with a null default expression
|
LGTM. Merging to master. |
This PR is a follow-up for PR #9819. It adds documentation for the window functions and a couple of NULL tests.
The documentation was largely based on the documentation in (the source of) Hive and Presto:
I am not sure if we need to add the licenses of these two projects to the licenses directory. They are both under the ASL. @srowen any thoughts?
cc @yhuai