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

Use type-specific row accessor functions in CatalystTypeConverters' toScala functions

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.4.0
    • 1.5.0
    • SQL
    • None

    Description

      CatalystTypeConverters's Catalyst row to Scala row converters access columns' values via the generic Row.get() call rather than using type-specific accessor methods. If we refactor the internal converter interfaces slightly, we can pass the row and column number into the converter function and allow it to do its own type-specific field extraction, similar to what we do in UnsafeRowConverter. This is a blocker for being able to unit test new operators that I'm developing as part of Project Tungsten, since those operators may output UnsafeRow instances which don't support the generic get().

      Attachments

        Issue Links

          Activity

            People

              joshrosen Josh Rosen
              joshrosen Josh Rosen
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: