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

Forgot to match Timestamp type in ColumnBuilder

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.1.0
    • SQL
    • None

    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.

      Attachments

        Activity

          People

            Unassigned Unassigned
            chutium Teng Qiu
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: