Skip to content

Commit 5ec6fa4

Browse files
committed
Add left semi to SQL Parser.
1 parent 4c726e5 commit 5ec6fa4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/SqlParser.scala

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,7 @@ class SqlParser extends StandardTokenParsers with PackratParsers {
128128
protected val OUTER = Keyword("OUTER")
129129
protected val RIGHT = Keyword("RIGHT")
130130
protected val SELECT = Keyword("SELECT")
131+
protected val SEMI = Keyword("SEMI")
131132
protected val STRING = Keyword("STRING")
132133
protected val SUM = Keyword("SUM")
133134
protected val TRUE = Keyword("TRUE")
@@ -238,6 +239,7 @@ class SqlParser extends StandardTokenParsers with PackratParsers {
238239

239240
protected lazy val joinType: Parser[JoinType] =
240241
INNER ^^^ Inner |
242+
LEFT ~ SEMI ^^^ LeftSemi |
241243
LEFT ~ opt(OUTER) ^^^ LeftOuter |
242244
RIGHT ~ opt(OUTER) ^^^ RightOuter |
243245
FULL ~ opt(OUTER) ^^^ FullOuter

0 commit comments

Comments
 (0)