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.
Uh oh!
There was an error while loading. Please reload this page.
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.
@HyukjinKwon
I noticed that this logic was added in #41495. If I'm not mistaken, this is a defensive deletion to avoid including
TestUDTF.jarindefaultduring testing? However, I found that running only this test:throws an error:
I manually printed the contents of
spark.sparkContext.addedJarsand it's an empty Map.But when I execute:
all tests pass, and the content of
spark.sparkContext.addedJarsis:In GitHub Action tests,
SQLQuerySuitedoes indeed execute beforeHiveDDLSuite, so the failure is not reproduced.So in this PR, I added a
case matchto only executeremovewhendefaultis notNone.I didn't directly clear all the contents in
spark.sparkContext.allAddedJarsafterSQLQuerySuitein this PR, because I'm not sure about the impact of this behavior.Do you think this is ok? Or do you have any better suggestions?
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 change seems fine. Can we do as below though?
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.
fine to me ~