Skip to content

Conversation

@yew1eb
Copy link
Contributor

@yew1eb yew1eb commented Jan 10, 2026

Which issue does this PR close?

Closes #1875

Rationale for this change

What changes are included in this PR?

Are there any user-facing changes?

How was this patch tested?

@github-actions github-actions bot added the spark label Jan 10, 2026
@yew1eb yew1eb force-pushed the AURON_1875 branch 2 times, most recently from b9cc7c4 to acce34a Compare January 10, 2026 15:21
@yew1eb yew1eb changed the title [AURON #1875] Minor refactor: Move legacy Spark version compatibility methods to Shims.scala [AURON #1875] Minor refactor: move legacy ppark version compatibility methods to Shims.scala Jan 11, 2026
@yew1eb yew1eb changed the title [AURON #1875] Minor refactor: move legacy ppark version compatibility methods to Shims.scala [AURON #1875] Minor refactor: move legacy spark version compatibility methods to Shims.scala Jan 11, 2026
@yew1eb yew1eb force-pushed the AURON_1875 branch 2 times, most recently from b8eff39 to baeb8fb Compare January 13, 2026 08:35
@cxzl25 cxzl25 requested a review from Copilot January 14, 2026 13:50
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR refactors legacy Spark version compatibility methods by moving them from AuronConverters.scala to the Shims abstraction layer, improving code organization and maintainability.

Changes:

  • Added three abstract method definitions in Shims.scala for version-specific Spark compatibility
  • Implemented these methods in ShimsImpl.scala with appropriate @sparkver annotations for different Spark versions
  • Updated call sites in AuronConverters.scala to use the new shim methods via Shims.get

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.

File Description
spark-extension/src/main/scala/org/apache/spark/sql/auron/Shims.scala Added abstract method declarations for getIsSkewJoinFromSHJ, getShuffleOrigin, and isNullAwareAntiJoin with appropriate imports
spark-extension-shims-spark/src/main/scala/org/apache/spark/sql/auron/ShimsImpl.scala Moved the version-specific implementations of the three methods from AuronConverters to ShimsImpl with @sparkver annotations
spark-extension/src/main/scala/org/apache/spark/sql/auron/AuronConverters.scala Removed method definitions and updated call sites to use Shims.get. instead; removed unused sparkver import

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@yew1eb yew1eb force-pushed the AURON_1875 branch 4 times, most recently from 67165e9 to 8e2f7b8 Compare January 17, 2026 09:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Minor Refactor: Move legacy spark version methods to Shims.scala

1 participant