You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by GitBox <gi...@apache.org> on 2022/07/18 06:36:13 UTC
[GitHub] [spark] ulysses-you commented on a diff in pull request #37207: [SPARK-39792][SQL] Add DecimalDivideWithOverflowCheck for decimal average
ulysses-you commented on code in PR #37207:
URL: https://github.com/apache/spark/pull/37207#discussion_r923007976
##########
sql/core/src/test/scala/org/apache/spark/sql/jdbc/JDBCV2Suite.scala:
##########
@@ -2166,7 +2166,7 @@ class JDBCV2Suite extends QueryTest with SharedSparkSession with ExplainSuiteHel
df.queryExecution.optimizedPlan.collect {
case _: DataSourceV2ScanRelation =>
val expected_plan_fragment =
- "PushedAggregates: [SUM(PRICE), COUNT(PRICE)]"
+ "PushedAggregates: [COUNT(PRICE), SUM(PRICE)]"
Review Comment:
This pr makes the count ahead of sum, and the ordering is decided by this code:
https://github.com/apache/spark/blob/e4ca8424474e571d8e137388fe5d54732b68c2f3/sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/v2/V2ScanRelationPushDown.scala#L135-L147
--
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: reviews-unsubscribe@spark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org