You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Simeon H.K. Fitch (JIRA)" <ji...@apache.org> on 2018/08/22 14:22:01 UTC

[jira] [Comment Edited] (SPARK-7768) Make user-defined type (UDT) API public

    [ https://issues.apache.org/jira/browse/SPARK-7768?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16588906#comment-16588906 ] 

Simeon H.K. Fitch edited comment on SPARK-7768 at 8/22/18 2:21 PM:
-------------------------------------------------------------------

We use UDTs to great effect in [RasterFrames|http://rasterframes.io/] through a [very small hole|https://github.com/locationtech/rasterframes/blob/79b2c3129a2482055ae14d4fd9cf3693c425ece6/core/src/main/scala/org/apache/spark/sql/gt/types/TileUDT.scala#L33] in the private API. So from my perspective, basically all that needs to be changed is to [remove this line of code|https://github.com/apache/spark/blob/3323b156f9c0beb0b3c2b724a6faddc6ffdfe99a/sql/catalyst/src/main/scala/org/apache/spark/sql/types/UserDefinedType.scala#L41].

I'm speaking of UDTs specifically; we have custom encoders too, which are by no means easy to implement. Unfortunately `Encoder` encoded types don't currently work with UDFs in the same way that UDTs do.


was (Author: metasim):
We use UDTs to great effect in [RasterFrames|http://rasterframes.io]  through a [very small hole|https://github.com/locationtech/rasterframes/blob/79b2c3129a2482055ae14d4fd9cf3693c425ece6/core/src/main/scala/org/apache/spark/sql/gt/types/TileUDT.scala#L33] in the private API. So from my perspective, basically all that needs to be changed is to [remove this line of code|https://github.com/apache/spark/blob/3323b156f9c0beb0b3c2b724a6faddc6ffdfe99a/sql/catalyst/src/main/scala/org/apache/spark/sql/types/UserDefinedType.scala#L41].

> Make user-defined type (UDT) API public
> ---------------------------------------
>
>                 Key: SPARK-7768
>                 URL: https://issues.apache.org/jira/browse/SPARK-7768
>             Project: Spark
>          Issue Type: New Feature
>          Components: SQL
>            Reporter: Xiangrui Meng
>            Priority: Critical
>
> As the demand for UDTs increases beyond sparse/dense vectors in MLlib, it would be nice to make the UDT API public in 1.5.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org