Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import org.apache.spark.sql.catalyst.expressions.Attribute
object JoinType {
def apply(typ: String): JoinType = typ.toLowerCase(Locale.ROOT).replace("_", "") match {
case "inner" => Inner
case "outer" | "full" | "fullouter" => FullOuter
case "outer" | "full" | "fullouter" | "full_outer" => FullOuter

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

as @wzhfy points out, given that we remove underscores, this matching case is unnecessary. The same is true for left_outer, right_outer and left_semi.

case "leftouter" | "left" => LeftOuter
case "rightouter" | "right" => RightOuter
case "leftsemi" => LeftSemi
Expand All @@ -33,7 +33,7 @@ object JoinType {
case _ =>
val supported = Seq(
"inner",
"outer", "full", "fullouter",
"outer", "full", "fullouter", "full_outer",
"leftouter", "left",
"rightouter", "right",
"leftsemi",
Expand Down