dariocurr opened a new pull request, #20185:
URL: https://github.com/apache/datafusion/pull/20185
Currently `print_options::MaxRows::Unlimited` basically always panics with
"attempt to add with overflow", because we are summing `usize::MAX` with a
positive number.
`saturating_add` solves this issue
# MRE
fn main() {
let max = usize::MAX;
println!("max: {}", max);
let max = max + 1;
println!("max: {}", max);
}
--
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]