Skip to content

Commit

Permalink
Excess judgment
Browse files Browse the repository at this point in the history
Author: Yadong Qi <[email protected]>

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

59b7237 [Yadong Qi] Update HiveQl.scala
  • Loading branch information
watermen authored and rxin committed Jul 29, 2014
1 parent 39ab87b commit 16ef4d1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 16ef4d1

Please sign in to comment.