KARTIK64-rgb commented on issue #20779:
URL: https://github.com/apache/datafusion/issues/20779#issuecomment-4016930193

   Hi, I would like to work on this issue! I have analyzed the root cause ,the 
Precision::Exact branch in max_distinct_count uses a plain subtraction (count - 
null_count) which can overflow when null_count > count after a fetch/limit 
pushdown via HashJoinExec. The fix is to apply the same checked_sub pattern 
already used in the Inexact branch. Could you please assign this issue to me? 
Thanks!


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