gruuya opened a new pull request, #9007: URL: https://github.com/apache/arrow-datafusion/pull/9007
## Which issue does this PR close? Closes #9006. ## Rationale for this change Sometimes an ineact row count can be smaller than the exact null count which leads to a panic. ## What changes are included in this PR? Do a checked subtraction to get the max distinct count estimate, and if it over(under)flows return Inexact(0). ## Are these changes tested? They are tested against the case presented in #9006, but still need to figure out a more consolidated test. ## Are there any user-facing changes? Avoid panic during execution. -- 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]
