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

Optimize SerializeFromObject for primitive array

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.0.0
    • 2.1.0
    • SQL
    • None

    Description

      In logical plan, SerializeFromObject for an array always use GenericArrayData as a destination. UnsafeArrayData could be used for an primitive array. This is a simple approach to solve issues that are addressed by SPARK-16043.

      Here is a motivating example.

      sparkContext.parallelize(Seq(Array(1)), 1).toDS.map(e => e).show
      

      Attachments

        Issue Links

          Activity

            People

              kiszk Kazuaki Ishizaki
              kiszk Kazuaki Ishizaki
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: