Skip to content

Commit 9847dcf

Browse files
committed
update SqlParser on masterbranch
1 parent 8945835 commit 9847dcf

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ class SqlParser extends StandardTokenParsers with PackratParsers {
133133
protected val TRUE = Keyword("TRUE")
134134
protected val UNION = Keyword("UNION")
135135
protected val WHERE = Keyword("WHERE")
136-
protected val WHERE = Keyword("EXCEPT")
136+
protected val WHERE = Keyword("EXCEPT")
137137

138138

139139
// Use reflection to find the reserved words defined in this class.
@@ -170,6 +170,7 @@ class SqlParser extends StandardTokenParsers with PackratParsers {
170170
protected lazy val query: Parser[LogicalPlan] =
171171
select * (
172172
UNION ~ ALL ^^^ { (q1: LogicalPlan, q2: LogicalPlan) => Union(q1, q2) } |
173+
EXCEPT ^^^ { (q1: LogicalPlan, q2: LogicalPlan) => Except(q1, q2)} |
173174
UNION ~ opt(DISTINCT) ^^^ { (q1: LogicalPlan, q2: LogicalPlan) => Distinct(Union(q1, q2)) }
174175
) | insert
175176

0 commit comments

Comments
 (0)