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

SQLContext.getConf(key, null) should return null, but it throws NPE

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.2.0
    • Fix Version/s: 2.1.2, 2.2.1, 2.3.0
    • Component/s: SQL
    • Labels:
      None

      Description

      SQLContext.get(key) for a key that is not defined in the conf, and doesn't have a default value defined, throws a NoSuchElementException. In order to avoid that, I used a null as the default value, which threw a NPE instead. If it is null, it shouldn't try to parse the default value in `getConfString`

        Attachments

          Activity

            People

            • Assignee:
              vinodkc Vinod KC
              Reporter:
              brkyvz Burak Yavuz
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: