Repository: spark
Updated Branches:
  refs/heads/master 517eb37a8 -> ba4f8ca0d


[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 <[email protected]>

Closes #6214 from liancheng/remove-unreachable-code and squashes the following 
commits:

c38ca7c [Cheng Lian] Removes an unreachable case clause


Project: http://git-wip-us.apache.org/repos/asf/spark/repo
Commit: http://git-wip-us.apache.org/repos/asf/spark/commit/ba4f8ca0
Tree: http://git-wip-us.apache.org/repos/asf/spark/tree/ba4f8ca0
Diff: http://git-wip-us.apache.org/repos/asf/spark/diff/ba4f8ca0

Branch: refs/heads/master
Commit: ba4f8ca0d9ccc0a39a8a0105541d0cc1f4912d62
Parents: 517eb37
Author: Cheng Lian <[email protected]>
Authored: Sat May 16 23:20:09 2015 -0700
Committer: Reynold Xin <[email protected]>
Committed: Sat May 16 23:20:09 2015 -0700

----------------------------------------------------------------------
 sql/core/src/main/scala/org/apache/spark/sql/sources/rules.scala | 1 -
 1 file changed, 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/spark/blob/ba4f8ca0/sql/core/src/main/scala/org/apache/spark/sql/sources/rules.scala
----------------------------------------------------------------------
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 1eacdde..ab33125 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.


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to