Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-42176

Cast boolean to timestamp fails with ClassCastException

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.3.1, 3.4.0, 3.5.0
    • 3.3.2, 3.4.0, 3.5.0
    • SQL
    • None

    Description

      When casting a boolean value to timestamp, the following error is thrown:

      [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) 

      Attachments

        Activity

          People

            ivan.sadikov Ivan Sadikov
            ivan.sadikov Ivan Sadikov
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: