Skip to content
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-3944][Core] Code re-factored as suggested #2810

Closed
wants to merge 1 commit into from

Conversation

Shiti
Copy link
Contributor

@Shiti Shiti commented Oct 15, 2014

No description provided.

@AmplabJenkins
Copy link

Can one of the admins verify this patch?

@markhamstra
Copy link
Contributor

ok to test

@vanzin
Copy link
Contributor

vanzin commented Oct 15, 2014

Hi @Shiti , could you write a less cryptic PR title? This becomes the git commit summary, so it's recommended that it describe the actual change. Thanks!

@andrewor14
Copy link
Contributor

add to whitelist

Option(uri.getScheme) match {
case Some("http") | Some("https") | Some("ftp") =>
Option(uri.getScheme).getOrElse("file") match {
case "http"|"https"|"ftp" =>
Copy link
Contributor

Choose a reason for hiding this comment

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

need spaces around |

@SparkQA
Copy link

SparkQA commented Oct 15, 2014

QA tests have started for PR 2810 at commit 8ee1cc9.

  • This patch merges cleanly.

@SparkQA
Copy link

SparkQA commented Oct 15, 2014

QA tests have finished for PR 2810 at commit 8ee1cc9.

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

@AmplabJenkins
Copy link

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/21777/
Test PASSed.

@SparkQA
Copy link

SparkQA commented Oct 16, 2014

QA tests have started for PR 2810 at commit 051d82f.

  • This patch merges cleanly.

@SparkQA
Copy link

SparkQA commented Oct 16, 2014

QA tests have finished for PR 2810 at commit 051d82f.

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

@AmplabJenkins
Copy link

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/21800/
Test PASSed.

@andrewor14
Copy link
Contributor

@markhamstra does this LGTY?

@markhamstra
Copy link
Contributor

Yup, LGTM. And as a general rule for the future, avoid pattern matching on Some and None. In most cases you should instead use a map, flatMap or foreach over the Option. Even, as in this instance, when you can't do that, matching on Some and None isn't good Scala style.

@andrewor14
Copy link
Contributor

Alright, I'm merging this.

@asfgit asfgit closed this in 4c589ca Oct 16, 2014
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.

6 participants