You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Kevin Tham (JIRA)" <ji...@apache.org> on 2014/06/03 23:16:04 UTC

[jira] [Resolved] (SPARK-2006) Spark Sql example throws ClassCastException: Long -> Int

     [ https://issues.apache.org/jira/browse/SPARK-2006?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Kevin Tham resolved SPARK-2006.
-------------------------------

    Resolution: Fixed

Fixed in https://github.com/apache/spark/pull/949

> Spark Sql example throws ClassCastException: Long -> Int
> --------------------------------------------------------
>
>                 Key: SPARK-2006
>                 URL: https://issues.apache.org/jira/browse/SPARK-2006
>             Project: Spark
>          Issue Type: Bug
>          Components: Examples
>    Affects Versions: 1.0.0
>            Reporter: Kevin Tham
>            Priority: Minor
>
> getInt() is being called on a spark sql COUNT query whose output datatype is of type Long. Casting a Long to Int is an illegal operation and the example should use getLong() instead.



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