Github user cloud-fan commented on a diff in the pull request:

    https://github.com/apache/spark/pull/13045#discussion_r63991215
  
    --- Diff: 
sql/core/src/test/scala/org/apache/spark/sql/DatasetAggregatorSuite.scala ---
    @@ -240,4 +240,15 @@ class DatasetAggregatorSuite extends QueryTest with 
SharedSQLContext {
         val df2 = Seq(1 -> "a", 2 -> "b", 3 -> "b").toDF("i", "j")
         checkAnswer(df2.agg(RowAgg.toColumn as "b").select("b"), Row(6) :: Nil)
       }
    +
    +  test("spark-15114 shorter system generated alias names") {
    +    val ds = Seq(1, 3, 2, 5).toDS()
    +    assert(ds.select(typed.sum((i: Int) => i)).columns.head === 
"typedsumdouble_c1")
    +    val ds2 = ds.select(typed.sum((i: Int) => i), typed.avg((i: Int) => i))
    +    assert(ds2.columns.head === "typedsumdouble_c1")
    --- End diff --
    
    I'm not sure how useful this `_c1` postfix is, maybe we can remove it and 
simplify the `aliasFunc`?


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

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

Reply via email to