[ 
https://issues.apache.org/jira/browse/SPARK-11011?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Xiangrui Meng resolved SPARK-11011.
-----------------------------------
       Resolution: Fixed
    Fix Version/s: 2.0.0

Issue resolved by pull request 11379
[https://github.com/apache/spark/pull/11379]

> UserDefinedType serialization should be strongly typed
> ------------------------------------------------------
>
>                 Key: SPARK-11011
>                 URL: https://issues.apache.org/jira/browse/SPARK-11011
>             Project: Spark
>          Issue Type: Improvement
>          Components: SQL
>    Affects Versions: 1.5.0, 1.5.1
>            Reporter: John Muller
>            Priority: Minor
>              Labels: UDT
>             Fix For: 2.0.0
>
>   Original Estimate: 336h
>  Remaining Estimate: 336h
>
> UDT's serialize method takes an Any rather than the actual type parameter.  
> The issue lies in CatalystTypeConverters convertToCatalyst(a: Any): Any 
> method, which pattern matches against a hardcoded list of built-in SQL types.
> Planned fix is to allow the UDT to supply the CatalystTypeConverter to use 
> via a new public method on the abstract class UserDefinedType that allows the 
> implementer to strongly type those conversions



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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

Reply via email to