aboutsummaryrefslogtreecommitdiff
path: root/core/src
diff options
context:
space:
mode:
authorDongjoon Hyun <dongjoon@apache.org>2016-10-30 23:24:30 +0100
committerHerman van Hovell <hvanhovell@databricks.com>2016-10-30 23:24:30 +0100
commit8ae2da0b2551011e2f6cf02907a1e20c138a4b2f (patch)
treeea3deddcf8c0c61dbd248bc723b7d01aef06b75c /core/src
parent90d3b91f4cb59d84fea7105d54ef8c87a7d5c6a2 (diff)
downloadspark-8ae2da0b2551011e2f6cf02907a1e20c138a4b2f.tar.gz
spark-8ae2da0b2551011e2f6cf02907a1e20c138a4b2f.tar.bz2
spark-8ae2da0b2551011e2f6cf02907a1e20c138a4b2f.zip
[SPARK-18106][SQL] ANALYZE TABLE should raise a ParseException for invalid option
## What changes were proposed in this pull request? Currently, `ANALYZE TABLE` command accepts `identifier` for option `NOSCAN`. This PR raises a ParseException for unknown option. **Before** ```scala scala> sql("create table test(a int)") res0: org.apache.spark.sql.DataFrame = [] scala> sql("analyze table test compute statistics blah") res1: org.apache.spark.sql.DataFrame = [] ``` **After** ```scala scala> sql("create table test(a int)") res0: org.apache.spark.sql.DataFrame = [] scala> sql("analyze table test compute statistics blah") org.apache.spark.sql.catalyst.parser.ParseException: Expected `NOSCAN` instead of `blah`(line 1, pos 0) ``` ## How was this patch tested? Pass the Jenkins test with a new test case. Author: Dongjoon Hyun <dongjoon@apache.org> Closes #15640 from dongjoon-hyun/SPARK-18106.
Diffstat (limited to 'core/src')
0 files changed, 0 insertions, 0 deletions