You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Apache Spark (JIRA)" <ji...@apache.org> on 2015/12/29 09:27:49 UTC
[jira] [Assigned] (SPARK-12549) UDFs' input type specification
should take Option[Seq[DataType]] rather than Seq[DataType]
[ https://issues.apache.org/jira/browse/SPARK-12549?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Apache Spark reassigned SPARK-12549:
------------------------------------
Assignee: Apache Spark (was: Reynold Xin)
> UDFs' input type specification should take Option[Seq[DataType]] rather than Seq[DataType]
> ------------------------------------------------------------------------------------------
>
> Key: SPARK-12549
> URL: https://issues.apache.org/jira/browse/SPARK-12549
> Project: Spark
> Issue Type: Improvement
> Components: SQL
> Reporter: Reynold Xin
> Assignee: Apache Spark
>
> 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.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org