-
Notifications
You must be signed in to change notification settings - Fork 28.1k
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
[SPARK-34762][BUILD] Fix the build failure with Scala 2.13 which is related to commons-* with better solution #31880
Closed
Closed
Changes from 1 commit
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
0be2ecf
Fix for SPARK-34762 with better solution.
sarutak 7bc154b
Revert the change in pomlxml.
sarutak 4cdc8c5
Merge branch 'master' of https://github.com/apache/spark into fix-com…
sarutak 3c66069
Modify change-scala-version.sh to choose scala.version from <profile>.
sarutak 9660460
Modify comment.
sarutak File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
For reviewers:
I confirmed this solution works even for
branch-3.1
butbranch-3.1
uses2.13.4
rather than2.13.5
so I'll open a backport PR after this PR merged.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.
Hm, why do we need both versions?
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.
I think it's better to have both versions to avoid issues like SPARK-34774.
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.
I don't quite see why it is necessary for this change?
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.
It's to preserve one version in pom.xml even after overwrite it with
change-scala-version.sh
.But now that #31865 introduces
<scala.version>
in<profile>
, we can take another solution (3c66069) without having both<scala-2.12.version>
and<scala-2.13.version>
.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.
I don't see the advantage or need - surely the build has one scala version? otherwise you have to flip even which property is referenced in the whole build?
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.
The first time I open this PR,
<scala.version>2.12.10</scala.version>
is absent from the profile<id>scala-2.12</id>
so, if we change the version withchange-scala-version.sh 2.13
, there will be no more2.12.10
because<scala.version>2.12.10</scala.version>
is overwritten with<scala.version>2.13.5</scala.version>
.Then,
change-scala-version.sh 2.12
will fail to modify pom.xml.If we have both versions in properties (
<scala-2.12.version>
and<scala-2.13-version>
) which will not be overwritten bychange-scala-version.sh
, it's easy to choosescala.version
to change.But, as I mentioned above, now we don't need such properties.