aboutsummaryrefslogtreecommitdiff
path: root/sql
diff options
context:
space:
mode:
authorwangfei <wangfei1@huawei.com>2015-02-06 12:42:23 -0800
committerMichael Armbrust <michael@databricks.com>2015-02-06 12:42:23 -0800
commitbc36356080e3b52aaf61fc1e6b204146ab96d29f (patch)
tree88e645c75f26349db1b3b80f39583c92f0a19e9f /sql
parentb62c35245a6c9bee6a335aa5dcfcca2547e85406 (diff)
downloadspark-bc36356080e3b52aaf61fc1e6b204146ab96d29f.tar.gz
spark-bc36356080e3b52aaf61fc1e6b204146ab96d29f.tar.bz2
spark-bc36356080e3b52aaf61fc1e6b204146ab96d29f.zip
[SQL][Minor] Remove cache keyword in SqlParser
Since cache keyword already defined in `SparkSQLParser` and `SqlParser` of catalyst is a more general parser which should not cover keywords related to underlying compute engine, to remove cache keyword in `SqlParser`. Author: wangfei <wangfei1@huawei.com> Closes #4393 from scwf/remove-cache-keyword and squashes the following commits: 10ade16 [wangfei] remove cache keyword in sql parser
Diffstat (limited to 'sql')
-rwxr-xr-xsql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/SqlParser.scala1
1 files changed, 0 insertions, 1 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 a9bd079c70..1c588ee2f7 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
@@ -57,7 +57,6 @@ class SqlParser extends AbstractSparkSQLParser {
protected val AVG = Keyword("AVG")
protected val BETWEEN = Keyword("BETWEEN")
protected val BY = Keyword("BY")
- protected val CACHE = Keyword("CACHE")
protected val CASE = Keyword("CASE")
protected val CAST = Keyword("CAST")
protected val COALESCE = Keyword("COALESCE")