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

Herman van Hovell resolved SPARK-20567.
---------------------------------------
       Resolution: Fixed
    Fix Version/s: 2.2.0

> Failure to bind when using explode and collect_set in streaming
> ---------------------------------------------------------------
>
>                 Key: SPARK-20567
>                 URL: https://issues.apache.org/jira/browse/SPARK-20567
>             Project: Spark
>          Issue Type: Bug
>          Components: SQL
>    Affects Versions: 2.2.0
>            Reporter: Michael Armbrust
>            Assignee: Michael Armbrust
>            Priority: Critical
>             Fix For: 2.2.0
>
>
> Here is a small test case:
> {code}
>   test("count distinct") {
>     val inputData = MemoryStream[(Int, Seq[Int])]
>     val aggregated =
>       inputData.toDF()
>         .select($"*", explode($"_2") as 'value)
>         .groupBy($"_1")
>         .agg(size(collect_set($"value")))
>         .as[(Int, Int)]
>     testStream(aggregated, Update)(
>       AddData(inputData, (1, Seq(1, 2))),
>       CheckLastBatch((1, 2))
>     )
>   }
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

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

Reply via email to