diff options
author | Cheng Lian <lian@databricks.com> | 2015-05-16 23:20:09 -0700 |
---|---|---|
committer | Reynold Xin <rxin@databricks.com> | 2015-05-16 23:20:19 -0700 |
commit | 671a6bca5f714626378e035d0dc4232571f50913 (patch) | |
tree | 093c59051e754e5630da2d221f3ad4531cbc0498 /sql | |
parent | 17e078671ef3214ac2415b4602c62f979713a9fe (diff) | |
download | spark-671a6bca5f714626378e035d0dc4232571f50913.tar.gz spark-671a6bca5f714626378e035d0dc4232571f50913.tar.bz2 spark-671a6bca5f714626378e035d0dc4232571f50913.zip |
[MINOR] [SQL] Removes an unreachable case clause
This case clause is already covered by the one above, and generates a compilation warning.
Author: Cheng Lian <lian@databricks.com>
Closes #6214 from liancheng/remove-unreachable-code and squashes the following commits:
c38ca7c [Cheng Lian] Removes an unreachable case clause
(cherry picked from commit ba4f8ca0d9ccc0a39a8a0105541d0cc1f4912d62)
Signed-off-by: Reynold Xin <rxin@databricks.com>
Diffstat (limited to 'sql')
-rw-r--r-- | sql/core/src/main/scala/org/apache/spark/sql/sources/rules.scala | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/sql/core/src/main/scala/org/apache/spark/sql/sources/rules.scala b/sql/core/src/main/scala/org/apache/spark/sql/sources/rules.scala index 1eacdde741..ab33125b74 100644 --- a/sql/core/src/main/scala/org/apache/spark/sql/sources/rules.scala +++ b/sql/core/src/main/scala/org/apache/spark/sql/sources/rules.scala @@ -101,7 +101,6 @@ private[sql] case class PreWriteCheck(catalog: Catalog) extends (LogicalPlan => } } - case logical.InsertIntoTable(LogicalRelation(_: InsertableRelation), _, _, _, _) => // OK case logical.InsertIntoTable(LogicalRelation(_: HadoopFsRelation), _, _, _, _) => // OK case logical.InsertIntoTable(l: LogicalRelation, _, _, _, _) => // The relation in l is not an InsertableRelation. |