JkSelf commented on code in PR #40914:
URL: https://github.com/apache/spark/pull/40914#discussion_r1174808234
##########
sql/core/src/main/scala/org/apache/spark/sql/execution/stat/StatFunctions.scala:
##########
@@ -288,7 +288,7 @@ object StatFunctions extends Logging {
}
// If there is no selected columns, we don't need to run this aggregate,
so make it a lazy val.
- lazy val aggResult = ds.select(aggExprs:
_*).queryExecution.toRdd.collect().head
+ lazy val aggResult = ds.select(aggExprs:
_*).queryExecution.toRdd.map(_.copy()).collect().head
Review Comment:
Thanks @cloud-fan for the valuable information. @HyukjinKwon @zhengruifeng
can we follow the suggestion from wenchen to merge this PR without testing?
--
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]