Github user marmbrus commented on a diff in the pull request:

    https://github.com/apache/spark/pull/6570#discussion_r31491864
  
    --- Diff: 
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/Expression.scala
 ---
    @@ -37,6 +37,13 @@ abstract class Expression extends TreeNode[Expression] {
        *  - A [[Cast]] or [[UnaryMinus]] is foldable if its child is foldable
        */
       def foldable: Boolean = false
    +
    +  /**
    +   * Returns true when an expressions always return the same result for a 
specific set of
    +   * input values.
    +   */
    +  // TODO: Need to well define what are explicit input values and implicit 
input values.
    +  def deterministic: Boolean = true
    --- End diff --
    
    Shouldn't this only be true if all the children are `deterministic` (if 
there are any).


---
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.
---

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

Reply via email to