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

Map column would throw NPE if value is null

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.6.1, 2.0.0
    • SQL
    • None

    Description

      Create a map like

      { "a": "somestring", "b": null}

      Query like

      SELECT col["b"] FROM t1;

      NPE would be thrown.

      Attachments

        Activity

          People

            adrian-wang Adrian Wang
            adrian-wang Adrian Wang
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: