[ https://issues.apache.org/jira/browse/SPARK-16888?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Wenchen Fan updated SPARK-16888: -------------------------------- Assignee: Sean Zhong > 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 > Assignee: Sean Zhong > Priority: Minor > Fix For: 2.1.0 > > > 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-unsubscr...@spark.apache.org For additional commands, e-mail: issues-h...@spark.apache.org