GitHub user maropu opened a pull request:
https://github.com/apache/spark/pull/18516
[SPARK-21281][SQL] Throw AnalysisException if array and map have no argument
## What changes were proposed in this pull request?
This pr modified code to throw `AnalysisException` if `array` and `map` in
functions have no argument. This error handling is the same with `coalesce` in
functions.
## How was this patch tested?
Added tests in `DataFrameFunctionsSuite`.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/maropu/spark SPARK-21281
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/18516.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #18516
----
commit 1e29eab8fea5152a7608847dffbb5beb01742b8e
Author: Takeshi Yamamuro <[email protected]>
Date: 2017-07-03T15:07:13Z
Strict argument checks for array() and map()
----
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]