diff options
author | Josh Rosen <joshrosen@databricks.com> | 2015-01-21 14:27:43 -0800 |
---|---|---|
committer | Josh Rosen <joshrosen@databricks.com> | 2015-01-21 14:27:43 -0800 |
commit | b328ac6c8c489ef9abf850c45db5ad531da18d55 (patch) | |
tree | 5199e551d7d95d2b35e4817eea19271dd1775db3 /sql/catalyst | |
parent | 8361078efae7d79742d6be94cf5a15637ec860dd (diff) | |
download | spark-b328ac6c8c489ef9abf850c45db5ad531da18d55.tar.gz spark-b328ac6c8c489ef9abf850c45db5ad531da18d55.tar.bz2 spark-b328ac6c8c489ef9abf850c45db5ad531da18d55.zip |
Revert "[SPARK-5244] [SQL] add coalesce() in sql parser"
This reverts commit 812d3679f5f97df7b667cbc3365a49866ebc02d5.
Diffstat (limited to 'sql/catalyst')
-rwxr-xr-x | sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/SqlParser.scala | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/SqlParser.scala b/sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/SqlParser.scala index 4ca4e05edd..eaadbe9fd5 100755 --- a/sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/SqlParser.scala +++ b/sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/SqlParser.scala @@ -50,7 +50,6 @@ class SqlParser extends AbstractSparkSQLParser { protected val CACHE = Keyword("CACHE") protected val CASE = Keyword("CASE") protected val CAST = Keyword("CAST") - protected val COALESCE = Keyword("COALESCE") protected val COUNT = Keyword("COUNT") protected val DECIMAL = Keyword("DECIMAL") protected val DESC = Keyword("DESC") @@ -296,7 +295,6 @@ class SqlParser extends AbstractSparkSQLParser { { case s ~ p => Substring(s, p, Literal(Integer.MAX_VALUE)) } | (SUBSTR | SUBSTRING) ~ "(" ~> expression ~ ("," ~> expression) ~ ("," ~> expression) <~ ")" ^^ { case s ~ p ~ l => Substring(s, p, l) } - | COALESCE ~ "(" ~> repsep(expression, ",") <~ ")" ^^ { case exprs => Coalesce(exprs) } | SQRT ~ "(" ~> expression <~ ")" ^^ { case exp => Sqrt(exp) } | ABS ~ "(" ~> expression <~ ")" ^^ { case exp => Abs(exp) } | ident ~ ("(" ~> repsep(expression, ",")) <~ ")" ^^ |