[
https://issues.apache.org/jira/browse/SPARK-34223?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Wenchen Fan resolved SPARK-34223.
---------------------------------
Fix Version/s: 3.0.2
3.1.1
Resolution: Fixed
Issue resolved by pull request 31320
[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
> Assignee: Kent Yao
> Priority: Major
> Fix For: 3.1.1, 3.0.2
>
>
> 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]