LuciferYang commented on PR #60168:
URL: https://github.com/apache/spark/pull/60168#issuecomment-6815970218

   Thank you for the review. I went with option 1 and still require both keys' 
min/max for histograms (ed972757ef4). When only one key has min/max, the joined 
keys now take its range. The key without min/max no longer passes on its 
histogram, because its bins may not cover that range, and `numBinsHoldingRange` 
asserts when a column's min/max do not fit its histogram. A filter on that key 
above the join is then estimated from the joined min/max and distinct count. A 
new test checks an equality and a range filter in both join orders. Both 
comment fixes are in the same commit.
   
   I also merged master in ea2dc81dd8d to resolve the conflict with 
SPARK-60810, which added `canEstimateWithHistogram` to the same histogram guard.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


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

Reply via email to