You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Vladimir Feinberg (JIRA)" <ji...@apache.org> on 2016/07/12 21:51:20 UTC
[jira] [Commented] (SPARK-16504) UDAF should be typed
[ https://issues.apache.org/jira/browse/SPARK-16504?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15373769#comment-15373769 ]
Vladimir Feinberg commented on SPARK-16504:
-------------------------------------------
fwiw {{merge}} has type {{(MAB, Row):Unit}} instead of {{(MAB, MAB): Unit}} or even more preferably {{(MAB, MAB): MAB}} for some reason.
> UDAF should be typed
> --------------------
>
> Key: SPARK-16504
> URL: https://issues.apache.org/jira/browse/SPARK-16504
> Project: Spark
> Issue Type: Improvement
> Components: SQL
> Reporter: Vladimir Feinberg
>
> Currently, UDAFs can be implemented by using a generic {{MutableAggregationBuffer}}. This type-less class requires the user specify the schema.
> If the user wants to create vector output from a UDAF, this requires specifying an output schema with a VectorUDT(), which is only accessible through a DeveloperApi.
> Since we would prefer not to expose VectorUDT, the only option would be to resolve the user's inability to (legally) specify a schema containing a VectorUDT the same way that we would do so for creating dataframes: by type inference, just like createDataFrame does.
--
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