zahed1994 commented on PR #59095:
URL: https://github.com/apache/spark/pull/59095#issuecomment-6815968910

   Thanks for the thorough review and great suggestions, @dongjoon-hyun!
   
   Addressed all 6 items in commit bb2cd0a4d87:
   
   1. **InferredArrayClassTag Marker Class ([1])**:
      Simplified InferredArrayClassTag into a lightweight marker class 
extending ClassTag[T](override val runtimeClass: Class[_]), leveraging Scala 
2.13's standard  untimeClass member derivation with zero delegation overhead.
   2. **mergeClassTags & mergedKeyTag Helper ([2])**:
      - Renamed mergeKeyClassTags → mergeClassTags to reflect its general usage 
across keys, values, and elements.
      - Added private def mergedKeyTag(others: JavaPairRDD[K, _]*): ClassTag[K] 
to JavaPairRDD, eliminating repetitive boilerplate across all 18 combining 
overloads ( ightOuterJoin, ullOuterJoin, cogroup, groupWith, union).
   3. **Visibility ([3])**:
      Tightened ailOnHashPartitionerWithArrayKey in PairRDDFunctions back to 
private (no callers outside the class).
   4. **Declarative Collection Scan in parallelizePairs ([4])**:
      Replaced the imperative loop and flags with the functional iterator 
expression (seq.iterator.collect and keyClasses.forall(_ == first)).
   5. **Scaladoc Cross-Scope Reference ([5])**:
      Updated [[keys()]] in object JavaPairRDD to \keys()\ so Scaladoc resolves 
without warnings.
   6. **Diff Hygiene / Formatting Nits ([6])**:
      - Restored import org.apache.spark.api.java.Optional; to its original 
place in JavaAPISuite.java.
      - Restored the single-line subtractByKey signature in 
PairRDDFunctions.scala.
      - Removed the trailing blank line at the end of PairRDDFunctions.scala.
   
   Ran core/scalastyle (0 errors / 0 warnings across all 1,054 files) and 
verified both JavaAPISuite and PartitioningSuite (110/110 passed).


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

Reply via email to