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

Map column would throw NPE if value is null

    XMLWordPrintableJSON

    Details

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

      Description

      Create a map like

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

      Query like

      SELECT col["b"] FROM t1;

      NPE would be thrown.

        Attachments

          Activity

            People

            • Assignee:
              adrian-wang Adrian Wang
              Reporter:
              adrian-wang Adrian Wang
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: