Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-11011

UserDefinedType serialization should be strongly typed

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 1.5.0, 1.5.1
    • 2.0.0
    • SQL

    Description

      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

      Attachments

        Activity

          People

            jodersky Jakob Odersky
            blue666man John Muller
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 336h
                336h
                Remaining:
                Remaining Estimate - 336h
                336h
                Logged:
                Time Spent - Not Specified
                Not Specified