-
Notifications
You must be signed in to change notification settings - Fork 28.9k
[SPARK-14415][SQL] All functions should show usages by command DESC FUNCTION
#12185
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
|
Test build #55030 has finished for PR 12185 at commit
|
|
Test build #55039 has finished for PR 12185 at commit
|
|
Test build #55084 has finished for PR 12185 at commit
|
|
Test build #55176 has finished for PR 12185 at commit
|
DESC FUNCTION
|
Test build #55283 has finished for PR 12185 at commit
|
|
Test build #55304 has finished for PR 12185 at commit
|
|
Test build #55313 has finished for PR 12185 at commit
|
|
Hi, @rxin . |
|
This is super useful. @yhuai can you review this? |
|
Thank you so much! @rxin :) |
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.
What do you mean by (array, value)?
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.
Maybe Returns the average of values in a group?
|
Oh, @yhuai . Thank you for deep and detail review! |
|
For those aggregate functions, I feel it is better to mention that they are calculated from values of a group instead of just saying from a set of values? |
|
Sure. You mean |
|
Since I just borrowed from the Hive cli, it seems to be weird. I think we can improve them in this PR as much as possible. |
|
Yea. I feel that |
|
Thank you. I agree. I will apply them all related descriptions. |
|
Test build #55454 has finished for PR 12185 at commit
|
|
Test build #55455 has finished for PR 12185 at commit
|
|
Test build #55467 has finished for PR 12185 at commit
|
|
Test build #55468 has finished for PR 12185 at commit
|
|
Test build #55477 has finished for PR 12185 at commit
|
|
Thanks. Merging to master. |
…ection Functions #### What changes were proposed in this pull request? #12185 contains the original PR I submitted in #10418 However, it misses one of the extended example, a wrong description and a few typos for collection functions. This PR is fix all these issues. #### How was this patch tested? The existing test cases already cover it. Author: gatorsmile <[email protected]> Closes #12492 from gatorsmile/expressionUpdate.
What changes were proposed in this pull request?
Currently, many functions do now show usages like the followings.
This PR adds descriptions for functions and adds a testcase prevent adding function without usage.
The only exceptions are
cube,grouping,grouping_id,rollup,window.How was this patch tested?
Pass the Jenkins tests (including new testcases.)