You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Sean Zhong (JIRA)" <ji...@apache.org> on 2016/08/04 03:24:20 UTC

[jira] [Created] (SPARK-16888) Implements eval method for expression AssertNotNull

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: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org