Github user viirya commented on a diff in the pull request:

    https://github.com/apache/spark/pull/21611#discussion_r198664098
  
    --- Diff: 
sql/core/src/test/scala/org/apache/spark/sql/DatasetAggregatorSuite.scala ---
    @@ -333,4 +406,28 @@ class DatasetAggregatorSuite extends QueryTest with 
SharedSQLContext {
           df.groupBy($"i").agg(VeryComplexResultAgg.toColumn),
           Row(1, Row(Row(1, "a"), Row(1, "a"))) :: Row(2, Row(Row(2, "bc"), 
Row(2, "bc"))) :: Nil)
       }
    +
    +  test("SPARK-24569: Aggregator with output type Option[Boolean] creates 
column of type Row") {
    +    val df = Seq(
    +      OptionBooleanData("bob", Some(true)),
    +      OptionBooleanData("bob", Some(false)),
    +      OptionBooleanData("bob", None)).toDF()
    +    val group = df
    +      .groupBy("name")
    --- End diff --
    
    A test is added to demonstrate it.


---

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

Reply via email to