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

    https://github.com/apache/spark/pull/2513#discussion_r18429702
  
    --- Diff: 
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/SqlParser.scala ---
    @@ -91,42 +92,42 @@ class SqlParser extends StandardTokenParsers with 
PackratParsers {
       protected val IN = Keyword("IN")
       protected val INNER = Keyword("INNER")
       protected val INSERT = Keyword("INSERT")
    +  protected val INTERSECT = Keyword("INTERSECT")
       protected val INTO = Keyword("INTO")
       protected val IS = Keyword("IS")
       protected val JOIN = Keyword("JOIN")
    +  protected val LAST = Keyword("LAST")
    +  protected val LAZY = Keyword("LAZY")
       protected val LEFT = Keyword("LEFT")
    +  protected val LIKE = Keyword("LIKE")
       protected val LIMIT = Keyword("LIMIT")
    +  protected val LOWER = Keyword("LOWER")
       protected val MAX = Keyword("MAX")
       protected val MIN = Keyword("MIN")
       protected val NOT = Keyword("NOT")
       protected val NULL = Keyword("NULL")
       protected val ON = Keyword("ON")
       protected val OR = Keyword("OR")
    -  protected val OVERWRITE = Keyword("OVERWRITE")
    -  protected val LIKE = Keyword("LIKE")
    -  protected val RLIKE = Keyword("RLIKE")
    -  protected val UPPER = Keyword("UPPER")
    -  protected val LOWER = Keyword("LOWER")
    -  protected val REGEXP = Keyword("REGEXP")
       protected val ORDER = Keyword("ORDER")
       protected val OUTER = Keyword("OUTER")
    +  protected val OVERWRITE = Keyword("OVERWRITE")
    +  protected val REGEXP = Keyword("REGEXP")
       protected val RIGHT = Keyword("RIGHT")
    +  protected val RLIKE = Keyword("RLIKE")
       protected val SELECT = Keyword("SELECT")
       protected val SEMI = Keyword("SEMI")
    +  protected val SQRT = Keyword("SQRT")
       protected val STRING = Keyword("STRING")
    +  protected val SUBSTR = Keyword("SUBSTR")
    +  protected val SUBSTRING = Keyword("SUBSTRING")
       protected val SUM = Keyword("SUM")
       protected val TABLE = Keyword("TABLE")
       protected val TIMESTAMP = Keyword("TIMESTAMP")
       protected val TRUE = Keyword("TRUE")
       protected val UNCACHE = Keyword("UNCACHE")
       protected val UNION = Keyword("UNION")
    +  protected val UPPER = Keyword("UPPER")
       protected val WHERE = Keyword("WHERE")
    --- End diff --
    
    Added keyword LAZY and sorted all the keywords in alphabetical order here. 
This list was once sorted but broken later.


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