sarutak commented on PR #60119:
URL: https://github.com/apache/spark/pull/60119#issuecomment-6679140888

   Thank you for the re-review. I pushed cb06cda586f, which qualifies the 
division in the three texts of the conditional `COUNT(DISTINCT)` rewrite (the 
`spark.sql.optimizer.rewriteCountDistinctConditional.enabled` doc, the comment 
on the union-of-filters guard and the `normalizeCountDistinctConditional` 
Scaladoc) as a division in ANSI mode, and renames a leftover "whitelist" in a 
`SplitStreamedSideJoinConditionSuite` comment.
   
   On the open questions, the FILTER guard, the hoisting of streamed-side join 
conjuncts, the normalization of conditional `COUNT(DISTINCT)`, and the 
placement of the `IS NOT NULL` checks in generated filter code: I would keep 
them as they are in this PR. Each applies its existing cost policy, which it 
already applies to plain columns, to the expressions that now count as unable 
to fail, with the same results and errors. If one of them turns out to cost too 
much for some expressions, I think it should be limited inside that 
optimization, in a separate change, rather than by this check, which its 
callers use for correctness. Thanks also for the correction on `COLLATE`.


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