cloud-fan commented on a change in pull request #33352:
URL: https://github.com/apache/spark/pull/33352#discussion_r672360652
##########
File path:
sql/core/src/main/scala/org/apache/spark/sql/execution/DataSourceScanExec.scala
##########
@@ -129,12 +131,32 @@ case class RowDataSourceScanExec(
override def inputRDD: RDD[InternalRow] = rdd
override val metadata: Map[String, String] = {
- val markedFilters = for (filter <- filters) yield {
- if (handledFilters.contains(filter)) s"*$filter" else s"$filter"
+
+ def seqToString(seq: Seq[Any]): String = seq.mkString("[", ", ", "]")
+
+ val (aggString, groupByString) = if (aggregation.nonEmpty) {
+ (seqToString(aggregation.get.getAggregateExpressions),
+ seqToString(aggregation.get.getGroupByColumns))
+ } else {
+ ("[]", "[]")
+ }
+
+ if (filters.nonEmpty) {
Review comment:
nit:
```
val markedFilters = ...
Map(...)
```
--
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]