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

NPE for static partion with null in InsertIntoHadoopFsRelationCommand

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.0.1, 3.1.0
    • Fix Version/s: 3.0.2, 3.1.1
    • Component/s: SQL
    • Labels:
      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

            • Assignee:
              Qin Yao Kent Yao
              Reporter:
              Qin Yao Kent Yao

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment