-
Notifications
You must be signed in to change notification settings - Fork 205
[AURON #1875] Minor refactor: move legacy spark version compatibility methods to Shims.scala #1876
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
b9cc7c4 to
acce34a
Compare
b8eff39 to
baeb8fb
Compare
There was a problem hiding this 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.scalafor version-specific Spark compatibility - Implemented these methods in
ShimsImpl.scalawith appropriate@sparkverannotations for different Spark versions - Updated call sites in
AuronConverters.scalato use the new shim methods viaShims.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.
spark-extension-shims-spark/src/main/scala/org/apache/spark/sql/auron/ShimsImpl.scala
Outdated
Show resolved
Hide resolved
spark-extension-shims-spark/src/main/scala/org/apache/spark/sql/auron/ShimsImpl.scala
Outdated
Show resolved
Hide resolved
8e2f7b8 to
934fc92
Compare
ShreyeshArangath
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
…bility methods to Shims.scala
|
cc @richox |
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?