Cheng Lian created SPARK-3654:
---------------------------------

             Summary: Implement all extended HiveQL statements/commands with a 
separate parser combinator
                 Key: SPARK-3654
                 URL: https://issues.apache.org/jira/browse/SPARK-3654
             Project: Spark
          Issue Type: Bug
          Components: SQL
    Affects Versions: 1.1.0
            Reporter: Cheng Lian


Statements and commands like {{SET}}, {{CACHE TABLE}} and {{ADD JAR}} etc. are 
currently parsed in a quite hacky way, like this:
{code}
if (sql.trim.toLowerCase.startsWith("cache table")) {
  sql.trim.toLowerCase.startsWith("cache table") match {
    ...
  }
}
{code}
It would be much better to add an extra parser combinator that parses these 
syntax extensions first, and then fallback to the normal Hive parser.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org
For additional commands, e-mail: issues-h...@spark.apache.org

Reply via email to