We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2d4bfbd commit 4bdd520Copy full SHA for 4bdd520
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/SqlParser.scala
@@ -140,7 +140,8 @@ class SqlParser extends StandardTokenParsers with PackratParsers {
140
protected lazy val query: Parser[LogicalPlan] = (
141
select * (
142
UNION ~ ALL ^^^ { (q1: LogicalPlan, q2: LogicalPlan) => Union(q1, q2) } |
143
- UNION ~ opt(DISTINCT) ^^^ { (q1: LogicalPlan, q2: LogicalPlan) => Distinct(Union(q1, q2)) }
+ UNION ~ opt(DISTINCT) ^^^ { (q1: LogicalPlan, q2: LogicalPlan) => Distinct(Union(q1, q2)) } |
144
+ SUBTRACT ^^^ { (q1: LogicalPlan, q2: LogicalPlan) => Subtract(q1, q2) }
145
)
146
| insert | cache
147
0 commit comments