[
https://issues.apache.org/jira/browse/SPARK-11011?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Xiangrui Meng updated SPARK-11011:
----------------------------------
Assignee: Jakob Odersky
> 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
> Assignee: Jakob Odersky
> 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: [email protected]
For additional commands, e-mail: [email protected]