GitHub user mgaido91 opened a pull request:
https://github.com/apache/spark/pull/22947
[SPARK-24913][SQL] Make AssertNotNull and AssertTrue non-deterministic
## What changes were proposed in this pull request?
https://github.com/apache/spark/pull/21848 introduces an optimization which
causes wrong behavior with `AssertNotNull` and `AssertTrue`. This PR makes the
two mentioned expressions as non-deterministic in order to avoid skipping
evaluating them.
## How was this patch tested?
added UT
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/mgaido91/spark SPARK-24913
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/22947.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #22947
----
commit 332db305bd4de7b70725f5b1b431a9801f705292
Author: Marco Gaido <marcogaido91@...>
Date: 2018-11-05T11:48:53Z
[SPARK-24913][SQL] Make AssertNotNull and AssertTrue non-deterministic
----
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]