Skip to content

Commit

Permalink
Comment.
Browse files Browse the repository at this point in the history
  • Loading branch information
concretevitamin committed Jun 16, 2014
1 parent 79d26fc commit 4226eb9
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -925,8 +925,8 @@ private[hive] object HiveQl {
case Token("TOK_FUNCTION", Token(CASE(), Nil) :: branches) =>
val transformed = branches.drop(1).sliding(2, 2).map {
case Seq(condVal, value) =>
// FIXME: the key will get evaluated for multiple times in CaseWhen's eval(). Hence
// effectful / non-deterministic key expressions are *not* supported at the moment.
// FIXME (SPARK-2155): the key will get evaluated for multiple times in CaseWhen's eval().
// Hence effectful / non-deterministic key expressions are *not* supported at the moment.
// We should consider adding new Expressions to get around this.
Seq(Equals(nodeToExpr(branches(0)), nodeToExpr(condVal)),
nodeToExpr(value))
Expand Down

0 comments on commit 4226eb9

Please sign in to comment.