Github user marmbrus commented on a diff in the pull request:
https://github.com/apache/spark/pull/482#discussion_r12123835
--- Diff:
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/Expression.scala
---
@@ -239,6 +243,11 @@ abstract class LeafExpression extends Expression with
trees.LeafNode[Expression]
self: Product =>
}
+/**
+ * Root class for rewritten single operand UDF expression. By default, we
assume it produces Null
+ * if its operand is null. Exceptional case requires to update the
optimization rule
+ * at [[optimizer.ConstantFolding ConstantFolding]]
+ */
abstract class UnaryExpression extends Expression with
trees.UnaryNode[Expression] {
--- End diff --
Same concerns as above.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---