[ 
https://issues.apache.org/jira/browse/SPARK-52569?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Max Gekk resolved SPARK-52569.
------------------------------
    Fix Version/s: 4.1.0
       Resolution: Fixed

Issue resolved by pull request 51270
[https://github.com/apache/spark/pull/51270]

> Class cast exception in SecondsOfTimeWithFraction
> -------------------------------------------------
>
>                 Key: SPARK-52569
>                 URL: https://issues.apache.org/jira/browse/SPARK-52569
>             Project: Spark
>          Issue Type: Sub-task
>          Components: SQL
>    Affects Versions: 4.1.0
>            Reporter: Max Gekk
>            Assignee: Max Gekk
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 4.1.0
>
>
> The expression SecondsOfTimeWithFraction raise the class cast exception if we 
> pass NULL of NullType to it:
> {code:java}
> class org.apache.spark.sql.types.NullType$ cannot be cast to class 
> org.apache.spark.sql.types.TimeType (org.apache.spark.sql.types.NullType$ and 
> org.apache.spark.sql.types.TimeType are in unnamed module of loader 'app')
> java.lang.ClassCastException: class org.apache.spark.sql.types.NullType$ 
> cannot be cast to class org.apache.spark.sql.types.TimeType 
> (org.apache.spark.sql.types.NullType$ and org.apache.spark.sql.types.TimeType 
> are in unnamed module of loader 'app')
>       at 
> org.apache.spark.sql.catalyst.expressions.SecondsOfTimeWithFraction.<init>(timeExpressions.scala:330)
> {code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to