Skip to content

Conversation

@uncleGen
Copy link
Contributor

@uncleGen uncleGen commented Jan 16, 2017

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

@SparkQA
Copy link

SparkQA commented Jan 16, 2017

Test build #71414 has finished for PR 16591 at commit 22405d1.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@HyukjinKwon
Copy link
Member

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.

@uncleGen uncleGen changed the title [SPARK-19227][CORE] remove ununsed imports and outdated comments in org.apache.spark.internal.config.ConfigEntry [SPARK-19227][CORE] remove unused imports and outdated comments Jan 16, 2017
@uncleGen
Copy link
Contributor Author

uncleGen commented Jan 16, 2017

This work does not change any code, but just delete unused imports and fix some code style issue.
cc @srowen

Because there are lots of similar problems in code base, I will split this work into several follow-up PRs.

@SparkQA
Copy link

SparkQA commented Jan 16, 2017

Test build #71422 has started for PR 16591 at commit e98d9ab.

@uncleGen
Copy link
Contributor Author

retest this please

@SparkQA
Copy link

SparkQA commented Jan 16, 2017

Test build #71431 has finished for PR 16591 at commit e98d9ab.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

Copy link
Member

@srowen srowen left a 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

Copy link
Member

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.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Get it

Copy link
Contributor

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.

@uncleGen uncleGen changed the title [SPARK-19227][CORE] remove unused imports and outdated comments [SPARK-19251][CORE] remove unused imports and outdated comments Jan 17, 2017
@SparkQA
Copy link

SparkQA commented Jan 17, 2017

Test build #71470 has finished for PR 16591 at commit 958c2fe.

  • This patch fails PySpark unit tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

3. remove outdated parameter comments
@SparkQA
Copy link

SparkQA commented Jan 17, 2017

Test build #71480 has finished for PR 16591 at commit b5244ec.

  • This patch fails Scala style tests.
  • This patch does not merge cleanly.
  • This patch adds no public classes.

@uncleGen uncleGen changed the title [SPARK-19251][CORE] remove unused imports and outdated comments [SPARK-19251] remove unused imports and outdated comments Jan 17, 2017
@uncleGen
Copy link
Contributor Author

retest this please.

@SparkQA
Copy link

SparkQA commented Jan 17, 2017

Test build #71481 has finished for PR 16591 at commit ab70d6b.

  • This patch fails to build.
  • This patch merges cleanly.
  • This patch adds no public classes.

@SparkQA
Copy link

SparkQA commented Jan 17, 2017

Test build #71482 has started for PR 16591 at commit f0e0576.

@uncleGen
Copy link
Contributor Author

uncleGen commented Jan 17, 2017

No errors, but process was terminated by signal 9.

@uncleGen
Copy link
Contributor Author

retest this please.

@SparkQA
Copy link

SparkQA commented Jan 17, 2017

Test build #71493 has finished for PR 16591 at commit f0e0576.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

Copy link
Member

@srowen srowen left a 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
Copy link
Member

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



Copy link
Member

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

@srowen
Copy link
Member

srowen commented Jan 17, 2017

@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 [SPARK-19227] to the title as well.

@uncleGen uncleGen changed the title [SPARK-19251] remove unused imports and outdated comments [SPARK-19227][SPARK-19251] remove unused imports and outdated comments Jan 18, 2017
@SparkQA
Copy link

SparkQA commented Jan 18, 2017

Test build #71547 has finished for PR 16591 at commit a9386cb.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@srowen
Copy link
Member

srowen commented Jan 18, 2017

Merged to master

@asfgit asfgit closed this in eefdf9f Jan 18, 2017
uzadude pushed a commit to uzadude/spark that referenced this pull request Jan 27, 2017
## 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.
cmonkey pushed a commit to cmonkey/spark that referenced this pull request Feb 15, 2017
## 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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants