You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Reynold Xin (JIRA)" <ji...@apache.org> on 2015/10/12 22:54:05 UTC
[jira] [Comment Edited] (SPARK-10505) windowed form of count ( star
) fails with No handler for udf class
[ https://issues.apache.org/jira/browse/SPARK-10505?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14945791#comment-14945791 ]
Reynold Xin edited comment on SPARK-10505 at 10/12/15 8:53 PM:
---------------------------------------------------------------
[~the6campbells], I am trying to recreate the issue with master branch spark code (1.6.0 SNAPSHOT) and run it with hive 1.2.1. I created the table in hive and inserted a row to the table in hive, and went to spark shell to run sqlContext.sql("select rnum, c1, c2, c3, count(*) over(partition by c1) from tolap") and it ran through OK.
{code}
scala> var df = sqlContext.sql("select rnum, c1, c2, c3, count(*) over(partition by c1) from tolap")
df: org.apache.spark.sql.DataFrame = [rnum: int, c1: string, c2: string, c3: int, _c4: bigint]
scala> df.show
+----+---+---+---+---+
|rnum| c1| c2| c3|_c4|
+----+---+---+---+---+
| 1|abd|efg| 3| 1|
+----+---+---+---+---+
{code}
was (Author: xwu0226):
[~the6campbells], I am trying to recreate the issue with master branch spark code (1.6.0 SNAPSHOT) and run it with hive 1.2.1. I created the table in hive and inserted a row to the table in hive, and went to spark shell to run sqlContext.sql("select rnum, c1, c2, c3, count(*) over(partition by c1) from tolap") and it ran through OK.
scala> var df = sqlContext.sql("select rnum, c1, c2, c3, count(*) over(partition by c1) from tolap")
df: org.apache.spark.sql.DataFrame = [rnum: int, c1: string, c2: string, c3: int, _c4: bigint]
scala> df.show
+----+---+---+---+---+
|rnum| c1| c2| c3|_c4|
+----+---+---+---+---+
| 1|abd|efg| 3| 1|
+----+---+---+---+---+
> 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: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org