GitHub user viirya opened a pull request:
https://github.com/apache/spark/pull/19216
[SPARK-21990][SQL] QueryPlanConstraints misses some constraints that can be
recursively inferred
## What changes were proposed in this pull request?
When I inspected the latest change of SPARK-21979, I found we could miss
few constraints that can be recursively inferred.
E.g. consider constraints `a === b && b === c && a === 1 && b === 5`.
Currently we only infer `a === c && b === 1 && c === 5`, but `c === 1` can be
also inferred from newly inferred constraint `a === c`.
## How was this patch tested?
Added test.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/viirya/spark-1 SPARK-21990
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/19216.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 #19216
----
commit d76f8f0f3b0955c5baae2675157b33d0ceecb49f
Author: Liang-Chi Hsieh <[email protected]>
Date: 2017-09-13T08:41:09Z
Recursively infer constraints from newly inferred constraints.
----
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]