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

Internal DateType not handled correctly in caching

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Blocker
    • Resolution: Fixed
    • None
    • 1.3.2, 1.4.0
    • SQL
    • None

    Description

      From the user list. It looks like data is not implemented correctly in in-memory caching. We should also check the JDBC datasource support for date.

      Stack trace of an exception being reported since upgrade to 1.3.0:
      java.lang.ClassCastException: java.sql.Date cannot be cast to
      java.lang.Integer
              at scala.runtime.BoxesRunTime.unboxToInt(BoxesRunTime.java:105)
      ~[scala-library-2.11.6.jar:na]
              at
      org.apache.spark.sql.catalyst.expressions.GenericRow.getInt(rows.scala:83)
      ~[spark-catalyst_2.11-1.3.0.jar:1.3.0]
              at
      org.apache.spark.sql.columnar.IntColumnStats.gatherStats(ColumnStats.scala:191)
      ~[spark-sql_2.11-1.3.0.jar:1.3.0]
              at
      org.apache.spark.sql.columnar.NullableColumnBuilder$class.appendFrom(NullableColumnBuilder.scala:56)
      ~[spark-sql_2.11-1.3.0.jar:1.3.0]
              at
      org.apache.spark.sql.columnar.NativeColumnBuilder.org$apache$spark$sql$columnar$compression$CompressibleColumnBuilder$$super$appendFrom(ColumnBuilder.scala:87)
      ~[spark-sql_2.11-1.3.0.jar:1.3.0]
              at
      org.apache.spark.sql.columnar.compression.CompressibleColumnBuilder$class.appendFrom(CompressibleColumnBuilder.scala:78)
      ~[spark-sql_2.11-1.3.0.jar:1.3.0]
              at
      org.apache.spark.sql.columnar.NativeColumnBuilder.appendFrom(ColumnBuilder.scala:87)
      ~[spark-sql_2.11-1.3.0.jar:1.3.0]
              at
      org.apache.spark.sql.columnar.InMemoryRelation$$anonfun$3$$anon$1.next(InMemoryColumnarTableScan.scala:135)
      ~[spark-sql_2.11-1.3.0.jar:1.3.0]
              at
      

      Attachments

        Activity

          People

            adrian-wang Adrian Wang
            marmbrus Michael Armbrust
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: