spark-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Apache Spark (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (SPARK-2729) Forgot to match Timestamp type in ColumnBuilder
Date Sat, 02 Aug 2014 16:17:11 GMT

    [ https://issues.apache.org/jira/browse/SPARK-2729?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14083613#comment-14083613
] 

Apache Spark commented on SPARK-2729:
-------------------------------------

User 'liancheng' has created a pull request for this issue:
https://github.com/apache/spark/pull/1738

> Forgot to match Timestamp type in ColumnBuilder
> -----------------------------------------------
>
>                 Key: SPARK-2729
>                 URL: https://issues.apache.org/jira/browse/SPARK-2729
>             Project: Spark
>          Issue Type: Bug
>          Components: SQL
>            Reporter: Teng Qiu
>             Fix For: 1.1.0
>
>
> after SPARK-2710 we can create a table in Spark SQL with ColumnType Timestamp from jdbc.
> when i try to
> {code}
> sqlContext.cacheTable("myJdbcTable")
> {code}
> then
> {code}
> sqlContext.sql("select count(*) from myJdbcTable")
> {code}
> i got exception:
> {code}
> scala.MatchError: 8 (of class java.lang.Integer)
>         at org.apache.spark.sql.columnar.ColumnBuilder$.apply(ColumnBuilder.scala:146)
> {code}
> i checked the code ColumnBuilder.scala:146
> it is just missing a match of Timestamp typeid.
> so it is easy to fix.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org


Mime
View raw message