diff options
author | wangxiaojing <u9jing@gmail.com> | 2014-10-20 17:15:24 -0700 |
---|---|---|
committer | Michael Armbrust <michael@databricks.com> | 2014-10-20 17:15:28 -0700 |
commit | 0fe1c093690e5af6268182801747dfa6394dfc5b (patch) | |
tree | a91eaef3cc5abf632078724fe95c2a37b56c7b17 /README.md | |
parent | 7586e2e67ad45007f78803179b04d199c174bd69 (diff) | |
download | spark-0fe1c093690e5af6268182801747dfa6394dfc5b.tar.gz spark-0fe1c093690e5af6268182801747dfa6394dfc5b.tar.bz2 spark-0fe1c093690e5af6268182801747dfa6394dfc5b.zip |
[SPARK-3940][SQL] Avoid console printing error messages three times
If wrong sql,the console print error one times。
eg:
<pre>
spark-sql> show tabless;
show tabless;
14/10/13 21:03:48 INFO ParseDriver: Parsing command: show tabless
............
at org.apache.spark.sql.hive.thriftserver.SparkSQLCLIDriver.processCmd(SparkSQLCLIDriver.scala:274)
at org.apache.hadoop.hive.cli.CliDriver.processLine(CliDriver.java:413)
at org.apache.spark.sql.hive.thriftserver.SparkSQLCLIDriver$.main(SparkSQLCLIDriver.scala:209)
at org.apache.spark.sql.hive.thriftserver.SparkSQLCLIDriver.main(SparkSQLCLIDriver.scala)
Caused by: org.apache.hadoop.hive.ql.parse.ParseException: line 1:5 cannot recognize input near 'show' 'tabless' '<EOF>' in ddl statement
at org.apache.hadoop.hive.ql.parse.ParseDriver.parse(ParseDriver.java:193)
at org.apache.hadoop.hive.ql.parse.ParseDriver.parse(ParseDriver.java:161)
at org.apache.spark.sql.hive.HiveQl$.getAst(HiveQl.scala:218)
at org.apache.spark.sql.hive.HiveQl$.createPlan(HiveQl.scala:226)
... 47 more
Time taken: 4.35 seconds
14/10/13 21:03:51 INFO CliDriver: Time taken: 4.35 seconds
</pre>
Author: wangxiaojing <u9jing@gmail.com>
Closes #2790 from wangxiaojing/spark-3940 and squashes the following commits:
e2e5c14 [wangxiaojing] sql Print the error code three times
Diffstat (limited to 'README.md')
0 files changed, 0 insertions, 0 deletions