Github user dbtsai commented on a diff in the pull request:

    https://github.com/apache/spark/pull/21848#discussion_r204509378
  
    --- Diff: 
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/optimizer/expressions.scala
 ---
    @@ -403,14 +404,14 @@ object SimplifyConditionals extends Rule[LogicalPlan] 
with PredicateHelper {
               e.copy(branches = newBranches)
             }
     
    -      case e @ CaseWhen(branches, _) if branches.headOption.map(_._1) == 
Some(TrueLiteral) =>
    +      case CaseWhen(branches, _) if 
branches.headOption.map(_._1).contains(TrueLiteral) =>
    --- End diff --
    
    Since it's not a bug fix, I guess it's unlikely someone will backport this 
:)


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to