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

    https://github.com/apache/spark/pull/4060#discussion_r23795876
  
    --- Diff: sql/core/src/main/scala/org/apache/spark/sql/sources/ddl.scala ---
    @@ -78,10 +81,17 @@ private[sql] class DDLParser extends 
AbstractSparkSQLParser with Logging {
       protected val MAP = Keyword("MAP")
       protected val STRUCT = Keyword("STRUCT")
     
    -  protected lazy val ddl: Parser[LogicalPlan] = createTable
    +  protected lazy val ddl: Parser[LogicalPlan] = createTable | dropTable
     
       protected def start: Parser[LogicalPlan] = ddl
     
    +  protected lazy val dropTable: Parser[LogicalPlan] =
    +  (
    +    (DROP ~> TEMPORARY.? <~ TABLE) ~ (IF ~ EXISTS).? ~ ident ^^ {
    +      case temp ~ exists ~ tableName => DropTable(tableName, 
exists.nonEmpty, temp.nonEmpty)
    +    }
    +  )
    --- End diff --
    
    Please omit the parenthesis. We only need it for something like this:
    
    ```scala
    lazy val someRule = 
      ( branchA
      | branch B
      | branch C
      )
    ```


---
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.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to