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

Reynold Xin edited comment on SPARK-10505 at 10/12/15 8:53 PM:
---------------------------------------------------------------

[~the6campbells] I also tried this on Spark 1.5.1 and it is not recreatable. 

{code}
scala> hiveContext.sql("select rnum, c1, c2, c3, count(*) over (partition by 
c1) from tolap").show
+----+---+---+---+---+
|rnum| c1| c2| c3|_c4|
+----+---+---+---+---+
|   2|EFG|efg|  5|  1|
|   1|abc|efg|  3|  2|
|   2|abc|efg|  5|  2|
+----+---+---+---+---+
{code}

[~rxin] Would you think this issue can be closed? 



was (Author: xwu0226):
[~the6campbells] I also tried this on Spark 1.5.1 and it is not recreatable. 
scala> hiveContext.sql("select rnum, c1, c2, c3, count(*) over (partition by 
c1) from tolap").show
+----+---+---+---+---+
|rnum| c1| c2| c3|_c4|
+----+---+---+---+---+
|   2|EFG|efg|  5|  1|
|   1|abc|efg|  3|  2|
|   2|abc|efg|  5|  2|
+----+---+---+---+---+

[~rxin] Would you think this issue can be closed? 


> windowed form of count ( star ) fails with No handler for udf class
> -------------------------------------------------------------------
>
>                 Key: SPARK-10505
>                 URL: https://issues.apache.org/jira/browse/SPARK-10505
>             Project: Spark
>          Issue Type: Bug
>          Components: SQL
>    Affects Versions: 1.3.1
>            Reporter: N Campbell
>
> The following statement will parse/execute in Hive 0.13 but fails in SPARK. 
> {code}
> create a simple ORC table in Hive 
> create table  if not exists TOLAP (RNUM int , C1 string, C2 string, C3 int, 
> C4 int) TERMINATED BY '\n' 
>  STORED AS orc ;
> select rnum, c1, c2, c3, count(*) over(partition by c1) from tolap
> Error: java.lang.RuntimeException: No handler for udf class 
> org.apache.hadoop.hive.ql.udf.generic.GenericUDAFCount
> SQLState:  null
> ErrorCode: 0
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to