You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spark.apache.org by rx...@apache.org on 2014/07/29 06:39:05 UTC

git commit: Excess judgment

Repository: spark
Updated Branches:
  refs/heads/master 39ab87b92 -> 16ef4d110


Excess judgment

Author: Yadong Qi <qi...@gmail.com>

Closes #1629 from watermen/bug-fix2 and squashes the following commits:

59b7237 [Yadong Qi] Update HiveQl.scala


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

Branch: refs/heads/master
Commit: 16ef4d110f15dfe66852802fdadfe2ed7574ddc2
Parents: 39ab87b
Author: Yadong Qi <qi...@gmail.com>
Authored: Mon Jul 28 21:39:02 2014 -0700
Committer: Reynold Xin <rx...@apache.org>
Committed: Mon Jul 28 21:39:02 2014 -0700

----------------------------------------------------------------------
 sql/hive/src/main/scala/org/apache/spark/sql/hive/HiveQl.scala | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/spark/blob/16ef4d11/sql/hive/src/main/scala/org/apache/spark/sql/hive/HiveQl.scala
----------------------------------------------------------------------
diff --git a/sql/hive/src/main/scala/org/apache/spark/sql/hive/HiveQl.scala b/sql/hive/src/main/scala/org/apache/spark/sql/hive/HiveQl.scala
index e6ab68b..d18ccf8 100644
--- a/sql/hive/src/main/scala/org/apache/spark/sql/hive/HiveQl.scala
+++ b/sql/hive/src/main/scala/org/apache/spark/sql/hive/HiveQl.scala
@@ -610,7 +610,7 @@ private[hive] object HiveQl {
         // TOK_DESTINATION means to overwrite the table.
         val resultDestination =
           (intoClause orElse destClause).getOrElse(sys.error("No destination found."))
-        val overwrite = if (intoClause.isEmpty) true else false
+        val overwrite = intoClause.isEmpty
         nodeToDest(
           resultDestination,
           withLimit,