spark-reviews mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From viirya <...@git.apache.org>
Subject [GitHub] spark pull request #19720: [SPARK-22494][SQL] Fix 64KB limit exception with ...
Date Sun, 12 Nov 2017 10:41:28 GMT
Github user viirya commented on a diff in the pull request:

    https://github.com/apache/spark/pull/19720#discussion_r150406351
  
    --- Diff: sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/nullExpressions.scala
---
    @@ -90,7 +86,12 @@ case class Coalesce(children: Seq[Expression]) extends Expression {
               }
             }
           """
    -    }.mkString("\n"))
    +    }
    +
    +    ev.copy(code = s"""
    +      ${ev.isNull} = true;
    +      ${ev.value} = ${ctx.defaultValue(dataType)};
    +      ${ctx.splitExpressions(ctx.INPUT_ROW, evals)}""")
    --- End diff --
    
    It won't cause problem in fact. In that case, it works as before, i.e., `expressions.mkString("\n")`.


---

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


Mime
View raw message