[SPARK-14335][SQL] Describe function command returns wrong output#12128
[SPARK-14335][SQL] Describe function command returns wrong output#12128yongtang wants to merge 6 commits intoapache:masterfrom yongtang:SPARK-14335
Conversation
|
Test build #2735 has finished for PR 12128 at commit
|
|
@yhuai what do you want to do with the composed expressions, i.e.: |
|
For composed expressions, if there are only a few of them, maybe we can have special handling in the describe command? For |
|
Hi @yhuai @hvanhovell , as a reference, below is the result of the |
|
@yongtang can you see if you can hardcode the descriptions for the composed function into the |
|
@hvanhovell Thanks. Let me take a look and update the pull request. |
|
Hi @hvanhovell the pull request was updated. Let me know if there are any issues. |
|
ok to test |
There was a problem hiding this comment.
Can we add the usage at here?
There was a problem hiding this comment.
@yhuai Sure let me update the pull request shortly.
|
Hi @yhuai the pull request has been updated with the usages being added. Let me know if there are any other issues. And thanks for the review. |
|
Test build #54829 has finished for PR 12128 at commit
|
|
Test build #54834 has finished for PR 12128 at commit
|
|
Test build #54855 has finished for PR 12128 at commit
|
|
Test build #2743 has finished for PR 12128 at commit
|
There was a problem hiding this comment.
Looks like we also need to match upper case letters?
There was a problem hiding this comment.
Thanks @yhuai let me update the pull request.
|
Thanks @yhuai. The pull request has been updated. Please let me know if there are any other issues. |
|
Test build #54928 has finished for PR 12128 at commit
|
There was a problem hiding this comment.
Could you also add a test case for one of the hard coded functions?
There was a problem hiding this comment.
@hvanhovell Thanks. Additional test cases have been added.
|
Test build #54986 has finished for PR 12128 at commit
|
|
@yongtang This PR looks good to me. Can you rebase? |
…ause some of built-in functions are not in function registry. This fix tries to fix issues in `describe function` command where some of the outputs still shows Hive's function because some built-in functions are not in FunctionRegistry. The following built-in functions have been added to FunctionRegistry: ``` - ! * / & % ^ + < <= <=> = == > >= | ~ and in like not or rlike when ``` The following listed functions are not added: ``` != <> between case ``` All existing tests passed.
…ause some of built-in functions are not in function registry. Hard code describe functions for `<>`, `!=`, `between`, and `case` for now, based on the feedback from @hvanhovell.
…ause some of built-in functions are not in function registry. Add usages for `<>`, `!=`, `between`, and `case`, based on the feedback from @yhuai.
…ause some of built-in functions are not in function registry. Update SQLQuerySuite to reflect changes in `describe function`.
…ause some of built-in functions are not in function registry. Take into consideration the upper and lower case of `describe function` `between` and `describe function` `case`. Fix incorrect `between` usage.
…ause some of built-in functions are not in function registry. Add tests to cover hard coded 'describe function's.
|
Test build #55436 has finished for PR 12128 at commit
|
|
Thanks @yhuai. The pull request has been rebased and passed the Jenkins. Please let me know if there are any other issues. |
What changes were proposed in this pull request?
…because some of built-in functions are not in function registry.
This fix tries to fix issues in
describe functioncommand where some of the outputsstill shows Hive's function because some built-in functions are not in FunctionRegistry.
The following built-in functions have been added to FunctionRegistry:
The following listed functions are not added, but hard coded in
commands.scala(@hvanhovell):Below are the existing result of the above functions that have not been added:
How was this patch tested?
Existing tests passed. Additional test cases added.