[
https://issues.apache.org/jira/browse/SPARK-42176?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Hyukjin Kwon updated SPARK-42176:
---------------------------------
Fix Version/s: 3.5.0
> Cast boolean to timestamp fails with ClassCastException
> -------------------------------------------------------
>
> Key: SPARK-42176
> URL: https://issues.apache.org/jira/browse/SPARK-42176
> Project: Spark
> Issue Type: Bug
> Components: SQL
> Affects Versions: 3.3.1, 3.4.0
> Reporter: Ivan Sadikov
> Assignee: Ivan Sadikov
> Priority: Major
> Fix For: 3.3.2, 3.4.0, 3.5.0
>
>
> When casting a boolean value to timestamp, the following error is thrown:
> {code:java}
> [info] java.lang.ClassCastException: java.lang.Integer cannot be cast to
> java.lang.Long
> [info] at scala.runtime.BoxesRunTime.unboxToLong(BoxesRunTime.java:107)
> [info] at
> org.apache.spark.sql.catalyst.InternalRow$.$anonfun$getWriter$5(InternalRow.scala:178)
> [info] at
> org.apache.spark.sql.catalyst.InternalRow$.$anonfun$getWriter$5$adapted(InternalRow.scala:178)
> {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]