Return-Path: X-Original-To: apmail-spark-commits-archive@minotaur.apache.org Delivered-To: apmail-spark-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 1AC3F17A80 for ; Sun, 17 May 2015 06:20:22 +0000 (UTC) Received: (qmail 52261 invoked by uid 500); 17 May 2015 06:20:22 -0000 Delivered-To: apmail-spark-commits-archive@spark.apache.org Received: (qmail 52228 invoked by uid 500); 17 May 2015 06:20:22 -0000 Mailing-List: contact commits-help@spark.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list commits@spark.apache.org Received: (qmail 52219 invoked by uid 99); 17 May 2015 06:20:22 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 17 May 2015 06:20:22 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id DB1CFE04E5; Sun, 17 May 2015 06:20:21 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: rxin@apache.org To: commits@spark.apache.org Message-Id: <62c5580f9d0a4eb8afc804a920f71db9@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: spark git commit: [MINOR] [SQL] Removes an unreachable case clause Date: Sun, 17 May 2015 06:20:21 +0000 (UTC) Repository: spark Updated Branches: refs/heads/branch-1.4 17e078671 -> 671a6bca5 [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 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 Project: http://git-wip-us.apache.org/repos/asf/spark/repo Commit: http://git-wip-us.apache.org/repos/asf/spark/commit/671a6bca Tree: http://git-wip-us.apache.org/repos/asf/spark/tree/671a6bca Diff: http://git-wip-us.apache.org/repos/asf/spark/diff/671a6bca Branch: refs/heads/branch-1.4 Commit: 671a6bca5f714626378e035d0dc4232571f50913 Parents: 17e0786 Author: Cheng Lian Authored: Sat May 16 23:20:09 2015 -0700 Committer: Reynold Xin Committed: Sat May 16 23:20:19 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/671a6bca/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: commits-unsubscribe@spark.apache.org For additional commands, e-mail: commits-help@spark.apache.org