-
Notifications
You must be signed in to change notification settings - Fork 28.5k
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] Using Option[String] where value of String can be null #2795
Conversation
Can one of the admins verify this patch? |
Jenkins, test this please. |
Nice fix, LGTM. This is required by scala 2.11 too. @pwendell take a look ? |
Jenkins, test this please. |
QA tests have started for PR 2795 at commit
|
QA tests have finished for PR 2795 at commit
|
Test PASSed. |
I see, this is for scala 2.11. LGTM, I'm merging this into master. |
uri.getScheme match { | ||
case "http" | "https" | "ftp" => | ||
Option(uri.getScheme) match { | ||
case Some("http") | Some("https") | Some("ftp") => |
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.
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 _ =>
}
No description provided.