Github user mengxr commented on the pull request:
https://github.com/apache/spark/pull/9393#issuecomment-153182111
@yhuai This only applies to UDFs. What if a user uses built-in expressions,
e.g.:
~~~scala
val a = b + c
val d = a * a
~~~
It may be useful to write
~~~scala
val a = (b + c).nondeterministic
val d = a * a
~~~
Btw, I would prefer `udf { x => x * x }.nondeterministic` instead of
`nondeterministicUdf { x => x * x }`. But it is minor.
---
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]