GitHub user rxin opened a pull request:
https://github.com/apache/spark/pull/10504
[SPARK-12549][SQL] Take Option[Seq[DataType]] in UDF input type
specification.
In Spark we allow UDFs to declare its expected input types in order to
apply type coercion. The expected input type parameter takes a Seq[DataType]
and uses Nil when no type coercion is applied. It makes more sense to take
Option[Seq[DataType]] instead, so we can differentiate a no-arg function vs
function with no expected input type specified.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/rxin/spark SPARK-12549
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/10504.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 #10504
----
commit 4f03904bc54ae591afb8f097a7f3da2fa12fd989
Author: Reynold Xin <[email protected]>
Date: 2015-12-29T08:25:23Z
[SPARK-12549][SQL] UDFs' input type specification should take
Option[Seq[DataType]] rather than Seq[DataType]
----
---
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]