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

    https://github.com/apache/spark/pull/23054#discussion_r234476607
  
    --- Diff: 
sql/core/src/main/scala/org/apache/spark/sql/KeyValueGroupedDataset.scala ---
    @@ -459,7 +460,11 @@ class KeyValueGroupedDataset[K, V] private[sql](
           columns.map(_.withInputType(vExprEnc, dataAttributes).named)
         val keyColumn = if (!kExprEnc.isSerializedAsStruct) {
           assert(groupingAttributes.length == 1)
    -      groupingAttributes.head
    +      if (SQLConf.get.aliasNonStructGroupingKey) {
    --- End diff --
    
    we should do the lias when config is true...


---

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

Reply via email to