You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spark.apache.org by gu...@apache.org on 2018/07/25 11:10:49 UTC

spark git commit: [SPARK-24891][FOLLOWUP][HOT-FIX][2.3] Fix the Compilation Errors

Repository: spark
Updated Branches:
  refs/heads/branch-2.3 6a5999286 -> 740606eb8


[SPARK-24891][FOLLOWUP][HOT-FIX][2.3] Fix the Compilation Errors

## What changes were proposed in this pull request?

This PR is to fix the compilation failure in 2.3 build.

https://amplab.cs.berkeley.edu/jenkins/view/Spark%20QA%20Compile/job/spark-branch-2.3-compile-maven-hadoop-2.7/764/

## How was this patch tested?
N/A

Author: Xiao Li <ga...@gmail.com>

Closes #21869 from gatorsmile/testSPARK-24891.


Project: http://git-wip-us.apache.org/repos/asf/spark/repo
Commit: http://git-wip-us.apache.org/repos/asf/spark/commit/740606eb
Tree: http://git-wip-us.apache.org/repos/asf/spark/tree/740606eb
Diff: http://git-wip-us.apache.org/repos/asf/spark/diff/740606eb

Branch: refs/heads/branch-2.3
Commit: 740606eb8714c2536f239b454b0d0f5790886414
Parents: 6a59992
Author: Xiao Li <ga...@gmail.com>
Authored: Wed Jul 25 19:10:44 2018 +0800
Committer: hyukjinkwon <gu...@apache.org>
Committed: Wed Jul 25 19:10:44 2018 +0800

----------------------------------------------------------------------
 .../spark/sql/catalyst/expressions/constraintExpressions.scala   | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/spark/blob/740606eb/sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/constraintExpressions.scala
----------------------------------------------------------------------
diff --git a/sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/constraintExpressions.scala b/sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/constraintExpressions.scala
index 53936aa..1b2f020 100644
--- a/sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/constraintExpressions.scala
+++ b/sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/constraintExpressions.scala
@@ -18,7 +18,7 @@
 package org.apache.spark.sql.catalyst.expressions
 
 import org.apache.spark.sql.catalyst.InternalRow
-import org.apache.spark.sql.catalyst.expressions.codegen.{CodegenContext, ExprCode, FalseLiteral}
+import org.apache.spark.sql.catalyst.expressions.codegen.{CodegenContext, ExprCode}
 import org.apache.spark.sql.types.DataType
 
 case class KnowNotNull(child: Expression) extends UnaryExpression {
@@ -26,7 +26,7 @@ case class KnowNotNull(child: Expression) extends UnaryExpression {
   override def dataType: DataType = child.dataType
 
   override protected def doGenCode(ctx: CodegenContext, ev: ExprCode): ExprCode = {
-    child.genCode(ctx).copy(isNull = FalseLiteral)
+    child.genCode(ctx).copy(isNull = "false")
   }
 
   override def eval(input: InternalRow): Any = {


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