jx2lee opened a new pull request, #22309: URL: https://github.com/apache/datafusion/pull/22309
## Which issue does this PR close? - N/A ## Rationale for this change Prevent `Interval::cardinality()` from overflowing on the full `i64` range. ## What changes are included in this PR? - use `checked_add(1)` instead of `+ 1` - add a regression test for the full `i64` range ## Are these changes tested? - `cargo fmt --all --check` - `cargo test -p datafusion-expr-common test_cardinality_full_i64_range_does_not_overflow --lib` - `cargo clippy --all-targets --all-features -- -D warnings` could not run locally because `cmake` is not installed ## Are there any user-facing changes? - No -- 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]
