Skip to content

Conversation

@Shiti
Copy link
Contributor

@Shiti Shiti commented Oct 14, 2014

No description provided.

@Shiti Shiti changed the title [SPARK-3944][Core] Using Option[String] where value can be null [SPARK-3944][Core] Using Option[String] where value of String can be null Oct 14, 2014
@AmplabJenkins
Copy link

Can one of the admins verify this patch?

@ScrapCodes
Copy link
Member

Jenkins, test this please.

@ScrapCodes
Copy link
Member

Nice fix, LGTM. This is required by scala 2.11 too. @pwendell take a look ?

@pwendell
Copy link
Contributor

Jenkins, test this please.

@SparkQA
Copy link

SparkQA commented Oct 14, 2014

QA tests have started for PR 2795 at commit 46897d7.

  • This patch merges cleanly.

@SparkQA
Copy link

SparkQA commented Oct 14, 2014

QA tests have finished for PR 2795 at commit 46897d7.

  • 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/21728/
Test PASSed.

@andrewor14
Copy link
Contributor

I see, this is for scala 2.11. LGTM, I'm merging this into master.

@asfgit asfgit closed this in 24b818b Oct 14, 2014
Copy link
Contributor

Choose a reason for hiding this comment

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

Sorry for being late on this, but I'd really rather not see things like case Some("http") | Some("https") | Some("ftp") =>. Instead, I'd do this as:

Option(uri.getScheme).getOrElse("file") match {
  case "http" | "https" | "ftp" => ...
  case "file" => ...
  case _ =>
}

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.

7 participants