Github user viirya commented on the issue:

    https://github.com/apache/spark/pull/21687
  
    Seems `If` has similar issue?
    ```scala
    case class If(predicate: Expression, trueValue: Expression, falseValue: 
Expression)
      extends Expression {
      ...
      override def dataType: DataType = trueValue.dataType
    }
    ```


---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to