You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Prashant Singh (Jira)" <ji...@apache.org> on 2022/06/08 16:35:00 UTC
[jira] [Commented] (SPARK-39417) Handle Null partition values in PartitioningUtils
[ https://issues.apache.org/jira/browse/SPARK-39417?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17551701#comment-17551701 ]
Prashant Singh commented on SPARK-39417:
----------------------------------------
adding a PR for this shortly
> Handle Null partition values in PartitioningUtils
> -------------------------------------------------
>
> Key: SPARK-39417
> URL: https://issues.apache.org/jira/browse/SPARK-39417
> Project: Spark
> Issue Type: Bug
> Components: SQL
> Affects Versions: 3.2.1
> Reporter: Prashant Singh
> Priority: Major
> Fix For: 3.3.0
>
>
> partitions will null values fails with NPE now.
>
> ```
> [info] - Null partition value *** FAILED *** (142 milliseconds)
> [info] java.lang.NullPointerException:
> [info] at org.apache.spark.sql.execution.datasources.PartitioningUtils$.removeLeadingZerosFromNumberTypePartition(PartitioningUtils.scala:362)
> [info] at org.apache.spark.sql.execution.datasources.PartitioningUtils$.$anonfun$getPathFragment$1(PartitioningUtils.scala:355)
> [info] at scala.collection.TraversableLike.$anonfun$map$1(TraversableLike.scala:286)
> [info] at scala.collection.Iterator.foreach(Iterator.scala:943)
> [info] at scala.collection.Iterator.foreach$(Iterator.scala:943)
> ```
--
This message was sent by Atlassian Jira
(v8.20.7#820007)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org