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

add runtime null check when convert catalyst array to external array

    Details

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

      Description

      scala> Seq(("a", Seq(null, new Integer(1)))).toDS().as[(String, Array[Int])].collect()
      res5: Array[(String, Array[Int])] = Array((a,Array(0, 1)))
      

      This is wrong, we should throw exception for this case

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              cloud_fan Wenchen Fan
            • Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: