Description
after SPARK-2710 we can create a table in Spark SQL with ColumnType Timestamp from jdbc.
when i try to
sqlContext.cacheTable("myJdbcTable")
then
sqlContext.sql("select count(*) from myJdbcTable")
i got exception:
scala.MatchError: 8 (of class java.lang.Integer) at org.apache.spark.sql.columnar.ColumnBuilder$.apply(ColumnBuilder.scala:146)
i checked the code ColumnBuilder.scala:146
it is just missing a match of Timestamp typeid.
so it is easy to fix.