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 10:00:57 UTC

[jira] [Commented] (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:comment-tabpanel&focusedCommentId=15073672#comment-15073672 ] 

Apache Spark commented on SPARK-12549:
--------------------------------------

User 'rxin' has created a pull request for this issue:
https://github.com/apache/spark/pull/10504

> 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