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

NPE for static partion with null in InsertIntoHadoopFsRelationCommand

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.0.1, 3.1.0
    • 3.0.2, 3.1.1
    • SQL
    • None

    Description

      a test case

       test("NPE") {
          withTable("t") {
            sql(s"CREATE TABLE t(i STRING, c string) USING $format PARTITIONED BY (c)")
            sql("INSERT OVERWRITE t PARTITION (c=null) VALUES ('1')")
            checkAnswer(spark.table("t"), Row("1", null))
          }
        }
      

      Attachments

        Activity

          People

            Qin Yao Kent Yao 2
            Qin Yao Kent Yao 2
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: