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

Fix reverse function for array type of primitive type containing null.

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.4.0
    • Fix Version/s: 2.4.0
    • Component/s: SQL
    • Labels:
      None

      Description

      If we use reverse function for array type of primitive type containing null and the child array is UnsafeArrayData, the function returns a wrong result because UnsafeArrayData doesn't define the behavior of re-assignment, especially we can't set a valid value after we set null.

        Attachments

          Activity

            People

            • Assignee:
              ueshin Takuya Ueshin
              Reporter:
              ueshin Takuya Ueshin
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: