Sean Zhong created SPARK-16888:
----------------------------------

             Summary: Implements eval method for expression AssertNotNull
                 Key: SPARK-16888
                 URL: https://issues.apache.org/jira/browse/SPARK-16888
             Project: Spark
          Issue Type: Improvement
            Reporter: Sean Zhong
            Priority: Minor


We should support eval() method for expression AssertNotNull

Currently, it reports UnsupportedOperationException when used in projection of 
LocalRelation.

{code}
scala> import org.apache.spark.sql.catalyst.dsl.expressions._
scala> import org.apache.spark.sql.catalyst.expressions.objects.AssertNotNull
scala> import org.apache.spark.sql.Column
scala> case class A(a: Int)
scala> Seq((A(1),2)).toDS().select(new Column(AssertNotNull("_1".attr, 
Nil))).explain

java.lang.UnsupportedOperationException: Only code-generated evaluation is 
supported.
  at 
org.apache.spark.sql.catalyst.expressions.objects.AssertNotNull.eval(objects.scala:850)
  ...

{code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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

Reply via email to