We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Describe the bug DivideByZero occurs when div_checked and mod_checked are called with the argument f16::ONE.
div_checked
mod_checked
f16::ONE
To Reproduce
use half::f16; use arrow::array::Float16Array; use arrow::datatypes::ArrowNativeTypeOp; fn main() { let arr: Float16Array = [Some(f16::from_f64(1.0)), Some(f16::from_f64(2.0))].into_iter().collect(); println!("{:#?}", arr); println!("{:#?}", arr.value(0).div_checked(f16::ONE)); println!("{:#?}", arr.value(0).mod_checked(f16::ONE)); }
output:
PrimitiveArray<Float16> [ 1.0, 2.0, ] Err( DivideByZero, ) Err( DivideByZero, )
Expected behavior output:
PrimitiveArray<Float16> [ 1.0, 2.0, ] 1.0 0.0
Additional context
The text was updated successfully, but these errors were encountered:
label_issue.py automatically added labels {'arrow'} from #4017
label_issue.py
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
Describe the bug
DivideByZero occurs when
div_checked
andmod_checked
are called with the argumentf16::ONE
.To Reproduce
output:
Expected behavior
output:
Additional context
The text was updated successfully, but these errors were encountered: