-
Notifications
You must be signed in to change notification settings - Fork 847
New issue
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
[Minor] Fix clippy errors with new rust version (1.56) and float formatting with nightly #845
Conversation
} | ||
make_array(unsafe { builder.build_unchecked() }) | ||
} else if let DataType::LargeList(_) = *data_type { | ||
if let DataType::List(_) | DataType::LargeList(_) = *data_type { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice
@alamb I also fixed a test wrt. float formatting (I suppose that has been changed in a recent nightly). Please take another look, |
255.0, | ||
65535.0, | ||
4294967295.0, | ||
18446744073709552000.0, | ||
]; | ||
assert_eq!( | ||
f64_expected, | ||
get_cast_values::<Float64Type>(&f64_array, &DataType::Float64) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Rather than casting f64 to f64, converting it to strings (get_cast_values
), and then reparsing, I wonder if it would be less error prone to just do the cast to F64Array directly?
Codecov Report
@@ Coverage Diff @@
## master #845 +/- ##
==========================================
+ Coverage 82.64% 82.65% +0.01%
==========================================
Files 168 168
Lines 48088 48078 -10
==========================================
- Hits 39742 39741 -1
+ Misses 8346 8337 -9
Continue to review full report at Codecov.
|
…atting with nightly (#845) * Clippy fixes * Test formatting fixes * Test formatting fixes * Fixup
…atting with nightly (apache#845) * Clippy fixes * Test formatting fixes * Test formatting fixes * Fixup
…atting with nightly (apache#845) * Clippy fixes * Test formatting fixes * Test formatting fixes * Fixup
Which issue does this PR close?
Rationale for this change
Fix the build by fixing the clippy lints and tests on nightly.
What changes are included in this PR?
Are there any user-facing changes?