Github user liancheng commented on a diff in the pull request:

    https://github.com/apache/spark/pull/1151#discussion_r14529904
  
    --- Diff: 
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/SqlParser.scala ---
    @@ -135,13 +137,12 @@ class SqlParser extends StandardTokenParsers with 
PackratParsers {
         }
       }
     
    -  protected lazy val query: Parser[LogicalPlan] = (
    -    select * (
    -        UNION ~ ALL ^^^ { (q1: LogicalPlan, q2: LogicalPlan) => Union(q1, 
q2) } |
    -        UNION ~ opt(DISTINCT) ^^^ { (q1: LogicalPlan, q2: LogicalPlan) => 
Distinct(Union(q1, q2)) }
    -      )
    -    | insert | cache
    -  )
    +  protected lazy val query: Parser[LogicalPlan] =
    +   select * (
    +       UNION ~ ALL ^^^ { (q1: LogicalPlan, q2: LogicalPlan) => Union(q1, 
q2)} |
    +       EXCEPT ^^^ { (q1: LogicalPlan, q2: LogicalPlan) => Except(q1, q2)} |
    +       UNION ~ opt(DISTINCT) ^^^ { (q1: LogicalPlan, q2: LogicalPlan) => 
Distinct(Union(q1, q2))}
    +   ) | insert | cache
    --- End diff --
    
    Please undo all the indentation changes to these lines, and add a space 
before all `}`s.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to