[
https://issues.apache.org/jira/browse/SPARK-34223?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17271257#comment-17271257
]
Apache Spark commented on SPARK-34223:
--------------------------------------
User 'yaooqinn' has created a pull request for this issue:
https://github.com/apache/spark/pull/31320
> NPE for static partion with null in InsertIntoHadoopFsRelationCommand
> ---------------------------------------------------------------------
>
> Key: SPARK-34223
> URL: https://issues.apache.org/jira/browse/SPARK-34223
> Project: Spark
> Issue Type: Bug
> Components: SQL
> Affects Versions: 3.0.1, 3.1.0
> Reporter: Kent Yao
> Priority: Major
>
> a test case
> {code:java}
> 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))
> }
> }
> {code}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]