You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by "peter-toth (via GitHub)" <gi...@apache.org> on 2026/02/20 18:13:13 UTC

[PR] [SPARK-55302][SQL][4.1] Fix custom metrics in case of `KeyGroupedPartitioning` [spark]

peter-toth opened a new pull request, #54401:
URL: https://github.com/apache/spark/pull/54401

   ### What changes were proposed in this pull request?
   This PR adds a new `initMetricsValues()` method to `PartitionReader` so as to initialize custom metrics returned by `currentMetricsValues()`. In case of `KeyGroupedPartitioning` multiple input partitions are grouped and so multiple `PartitionReader` belong to one output partition. A `PartitionReader` needs to be initialized with metrics calculated by the previous `PartitionReader` of the same partition group to calculate the right value.
   
   ### Why are the changes needed?
   To calculate custom metrics correctly.
   
   ### Does this PR introduce _any_ user-facing change?
   It fixes metrics calculation.
   
   ### How was this patch tested?
   New UT is added.
   
   ### Was this patch authored or co-authored using generative AI tooling?
   No.


-- 
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


Re: [PR] [SPARK-55302][SQL][4.1] Fix custom metrics in case of `KeyGroupedPartitioning` [spark]

Posted by "dongjoon-hyun (via GitHub)" <gi...@apache.org>.
dongjoon-hyun commented on PR #54401:
URL: https://github.com/apache/spark/pull/54401#issuecomment-3937362639

   Thank you, @peter-toth , @szehon-ho , @viirya .


-- 
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


Re: [PR] [SPARK-55302][SQL][4.1] Fix custom metrics in case of `KeyGroupedPartitioning` [spark]

Posted by "dongjoon-hyun (via GitHub)" <gi...@apache.org>.
dongjoon-hyun commented on PR #54401:
URL: https://github.com/apache/spark/pull/54401#issuecomment-3937359239

   The aborted JDBC docker test is irrelevant to this. Merged to branch-4.1.
   ```
   [info] *** 1 SUITE ABORTED ***
   [error] Error during tests:
   [error] 	org.apache.spark.sql.jdbc.v2.join.OracleJoinPushdownIntegrationSuite
   ```


-- 
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


Re: [PR] [SPARK-55302][SQL][4.1] Fix custom metrics in case of `KeyGroupedPartitioning` [spark]

Posted by "dongjoon-hyun (via GitHub)" <gi...@apache.org>.
dongjoon-hyun closed pull request #54401: [SPARK-55302][SQL][4.1] Fix custom metrics in case of `KeyGroupedPartitioning`
URL: https://github.com/apache/spark/pull/54401


-- 
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