-
Notifications
You must be signed in to change notification settings - Fork 28.9k
[SPARK-19227][SPARK-19251] remove unused imports and outdated comments #16591
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
Conversation
…che.spark.internal.config.ConfigEntry`
|
Test build #71414 has finished for PR 16591 at commit
|
|
I know this is acceptable assuming from the history. However, I have seen a lot of unused imports across the code base. I think it'd be nicer if the same instances are checked at least within the same package. |
org.apache.spark.internal.config.ConfigEntry|
This work does not change any code, but just delete unused imports and fix some code style issue. Because there are lots of similar problems in code base, I will split this work into several follow-up PRs. |
|
Test build #71422 has started for PR 16591 at commit |
|
retest this please |
|
Test build #71431 has finished for PR 16591 at commit
|
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.
This seems to be tagged to the wrong JIRA
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.
This type of change shouldn't be made. Removing dead imports we usually don't bother with but maybe one sweep of all the code is OK.
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.
Get it
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.
why are you removing the line here? having two blank lines to separate top level classes is actually a style.
|
Test build #71470 has finished for PR 16591 at commit
|
3. remove outdated parameter comments
|
Test build #71480 has finished for PR 16591 at commit
|
|
retest this please. |
|
Test build #71481 has finished for PR 16591 at commit
|
|
Test build #71482 has started for PR 16591 at commit |
|
No errors, but process was terminated by signal 9. |
|
retest this please. |
|
Test build #71493 has finished for PR 16591 at commit
|
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.
OK, I know we've said don't bother with import fixups before, but I do think the occasional complete sweep is worthwhile, in a minor release.
I had a few comments but I'm OK with merging this for master otherwise.
| import java.io.File | ||
| import java.util.concurrent.ConcurrentHashMap | ||
|
|
||
| import org.apache.spark.SparkContext |
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.
Was this intentional? I would have guessed this wouldn't compile without this import before if it were needed.
| import org.apache.spark.sql.types.StructType | ||
|
|
||
|
|
||
|
|
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.
Back this out too if you please to be consistent
|
@uncleGen Oh, I see now that SPARK-19227 is just a doc issue and you fixed it here. That also isn't something that needs a JIRA. But if you resolve it here, also add |
|
Test build #71547 has finished for PR 16591 at commit
|
|
Merged to master |
## What changes were proposed in this pull request? remove ununsed imports and outdated comments, and fix some minor code style issue. ## How was this patch tested? existing ut Author: uncleGen <[email protected]> Closes apache#16591 from uncleGen/SPARK-19227.
## What changes were proposed in this pull request? remove ununsed imports and outdated comments, and fix some minor code style issue. ## How was this patch tested? existing ut Author: uncleGen <[email protected]> Closes apache#16591 from uncleGen/SPARK-19227.
What changes were proposed in this pull request?
remove ununsed imports and outdated comments, and fix some minor code style issue.
How was this patch tested?
existing ut