cloud-fan commented on a change in pull request #33352:
URL: https://github.com/apache/spark/pull/33352#discussion_r672369093
##########
File path:
sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/jdbc/JDBCRDD.scala
##########
@@ -133,6 +144,32 @@ object JDBCRDD extends Logging {
})
}
+ def compileAggregates(
+ aggregates: Seq[AggregateFunc],
+ dialect: JdbcDialect): (Array[String]) = {
+ def quote(colName: String): String = dialect.quoteIdentifier(colName)
+
+ val aggBuilder = ArrayBuilder.make[String]
+ aggregates.map {
Review comment:
Sorry I don't get it. Why not just `aggregates.map`? Why do we need an
ArrayBuilder?
--
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]