spark-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Herman van Hovell (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (SPARK-17849) grouping set throws NPE
Date Sat, 05 Nov 2016 13:34:58 GMT

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

Herman van Hovell resolved SPARK-17849.
---------------------------------------
       Resolution: Fixed
         Assignee: Yang Wang
    Fix Version/s: 2.1.0
                   2.0.3

> grouping set throws NPE
> -----------------------
>
>                 Key: SPARK-17849
>                 URL: https://issues.apache.org/jira/browse/SPARK-17849
>             Project: Spark
>          Issue Type: Bug
>          Components: SQL
>    Affects Versions: 2.0.0, 2.0.1
>            Reporter: Yang Wang
>            Assignee: Yang Wang
>             Fix For: 2.0.3, 2.1.0
>
>
> spark sql grouping sets throws NullPointerException.
> This problem can be recreated using the following lines of code:
> case class point(a:String, b:String, c:String)
> val data = Seq(
>   point("1","2","3"),
>   point("4","5","6"),
>   point("7","8","9")
> )
> sc.parallelize(data).toDF().registerTempTable("table")
> spark.sql("select a, b, count(c) from table group by a, b GROUPING SETS (()) ").show()



--
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


Mime
View raw message