spark-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Apache Spark (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (SPARK-12549) UDFs' input type specification should take Option[Seq[DataType]] rather than Seq[DataType]
Date Tue, 29 Dec 2015 09:00:57 GMT

    [ 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


Mime
View raw message