dongjoon-hyun commented on PR #60764:
URL: https://github.com/apache/spark/pull/60764#issuecomment-7073440255

   Thank you for the careful measurements, @sarutak. I addressed the comments 
in the latest commit.
   
   - Plan cost: the first two rows are the cost of the fix, as you said, and 
the description now says that the domain join reads the outer query once more, 
also when no condition fails. For the third row, 
`ExprUtils.canEvaluateUnconditionally` does not accept a non-deterministic 
expression such as `rand(0)`, so telling that such a conjunct can not fail 
needs a change there; I'd like to handle it separately. For the fourth row, the 
correlated conjuncts written after the kept ones that read an inner column are 
now kept too, unless their outer columns can not be in the domain, so the 
domain join is keyed on `k` (a BroadcastHashJoin in my run). For the last row, 
I didn't find a way to keep a key without computing the cast ahead of the 
guard, so I left it.
   - Description: it now names the `Window`, `Distinct`, `Limit`, `Offset` and 
set operation cases, says why a string of a non-binary collation and a 
floating-point column fall back, and lists the outer columns computed with an 
expression that can fail.
   - Tests: I added `a < 10` at the end of the filter in the plan test and the 
`UNION ALL` query to `SubquerySuite`.
   


-- 
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