Skip to content

Commit ba4f8ca

Browse files
lianchengrxin
authored andcommitted
[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 apache#6214 from liancheng/remove-unreachable-code and squashes the following commits: c38ca7c [Cheng Lian] Removes an unreachable case clause
1 parent 517eb37 commit ba4f8ca

File tree

1 file changed

+0
-1
lines changed
  • sql/core/src/main/scala/org/apache/spark/sql/sources

1 file changed

+0
-1
lines changed

sql/core/src/main/scala/org/apache/spark/sql/sources/rules.scala

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,6 @@ private[sql] case class PreWriteCheck(catalog: Catalog) extends (LogicalPlan =>
101101
}
102102
}
103103

104-
case logical.InsertIntoTable(LogicalRelation(_: InsertableRelation), _, _, _, _) => // OK
105104
case logical.InsertIntoTable(LogicalRelation(_: HadoopFsRelation), _, _, _, _) => // OK
106105
case logical.InsertIntoTable(l: LogicalRelation, _, _, _, _) =>
107106
// The relation in l is not an InsertableRelation.

0 commit comments

Comments
 (0)