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

Remove unnecessary nullchecks of a return value from Spark runtime routines in generated Java code

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.2.0
    • 2.2.0
    • SQL
    • None

    Description

      While we know several Spark runtime routines never return null (e.g. UnsafeArrayData.toDoubleArray(), the generated code by Catalyst always checks whether the return value is null or not.
      It is good to remove this nullcheck for reducing Java bytecode size and reducing the native code size.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: