hvanhovell commented on code in PR #49111:
URL: https://github.com/apache/spark/pull/49111#discussion_r1941536099
##########
connector/connect/client/jvm/src/main/scala/org/apache/spark/sql/KeyValueGroupedDataset.scala:
##########
@@ -471,16 +481,120 @@ private class KeyValueGroupedDatasetImpl[K, V, IK, IV](
}
}
+ private def aggUntypedWithValueMapFunc(columns: TypedColumn[_, _]*):
Dataset[_] = {
+ val originalDs = sparkSession.newDataset(ivEncoder, plan)
+
+ // Apply the value transformation, get a DS of two columns "iv" and "v".
+ // If any of "iv" or "v" consists of a single primitive field, wrap it
with a struct so it
+ // would not be flattened.
Review Comment:
Again. I think flattening is not an issue. The aggregators are surprisingly
lenient in that sense.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]