You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Hyukjin Kwon (Jira)" <ji...@apache.org> on 2023/01/25 03:34:00 UTC
[jira] [Resolved] (SPARK-42176) Cast boolean to timestamp fails with ClassCastException
[ https://issues.apache.org/jira/browse/SPARK-42176?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Hyukjin Kwon resolved SPARK-42176.
----------------------------------
Fix Version/s: 3.3.2
3.4.0
Resolution: Fixed
Issue resolved by pull request 39729
[https://github.com/apache/spark/pull/39729]
> 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
>
>
> 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: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org