Github user cloud-fan commented on a diff in the pull request:

    https://github.com/apache/spark/pull/20750#discussion_r174605126
  
    --- Diff: 
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/Expression.scala
 ---
    @@ -328,6 +328,21 @@ trait Nondeterministic extends Expression {
       protected def evalInternal(input: InternalRow): Any
     }
     
    +/**
    + * A stateful nondeterministic expression. These expressions contain state
    + * that is not stored in the parameter list.
    + */
    +trait StatefulNondeterministic extends Nondeterministic {
    --- End diff --
    
    Maybe we can just call it `Stateful` while still extending 
`Nondeterministic`, and in the doc we say that stateful expressions imply it's 
nondeterministic.


---

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

Reply via email to