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

    https://github.com/apache/spark/pull/20858#discussion_r177278671
  
    --- Diff: 
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/Expression.scala
 ---
    @@ -699,3 +699,88 @@ abstract class TernaryExpression extends Expression {
      * and Hive function wrappers.
      */
     trait UserDefinedExpression
    +
    +/**
    + * The trait covers logic for performing null save evaluation and code 
generation.
    + */
    +trait NullSafeEvaluation extends Expression
    +{
    +  override def foldable: Boolean = children.forall(_.foldable)
    +
    +  override def nullable: Boolean = children.exists(_.nullable)
    +
    +  /**
    +   * Default behavior of evaluation according to the default nullability 
of NullSafeEvaluation.
    +   * If a class utilizing NullSaveEvaluation override [[nullable]], 
probably should also
    +   * override this.
    +   */
    +  override def eval(input: InternalRow): Any =
    +  {
    --- End diff --
    
    Seems the style fix is missed here.


---

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

Reply via email to