Skip to content
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

Merged
merged 4 commits into from
Oct 22, 2021

Conversation

Dandandan
Copy link
Contributor

@Dandandan Dandandan commented Oct 22, 2021

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?

@github-actions github-actions bot added arrow Changes to the arrow crate parquet Changes to the parquet crate labels Oct 22, 2021
}
make_array(unsafe { builder.build_unchecked() })
} else if let DataType::LargeList(_) = *data_type {
if let DataType::List(_) | DataType::LargeList(_) = *data_type {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice

@Dandandan
Copy link
Contributor Author

@alamb I also fixed a test wrt. float formatting (I suppose that has been changed in a recent nightly). Please take another look,

@Dandandan Dandandan requested a review from alamb October 22, 2021 10:14
255.0,
65535.0,
4294967295.0,
18446744073709552000.0,
];
assert_eq!(
f64_expected,
get_cast_values::<Float64Type>(&f64_array, &DataType::Float64)
Copy link
Contributor

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?

@alamb alamb changed the title [Minor] Fix clippy errors with new rust version [Minor] Fix clippy errors with new rust version (1.56) Oct 22, 2021
@codecov-commenter
Copy link

Codecov Report

Merging #845 (0f00a01) into master (4cfe621) will increase coverage by 0.01%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            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     
Impacted Files Coverage Δ
arrow/src/compute/kernels/cast.rs 94.61% <100.00%> (+<0.01%) ⬆️
arrow/src/ipc/reader.rs 86.08% <100.00%> (+1.33%) ⬆️
parquet/src/schema/parser.rs 86.37% <100.00%> (+0.09%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 4cfe621...0f00a01. Read the comment docs.

@Dandandan Dandandan changed the title [Minor] Fix clippy errors with new rust version (1.56) [Minor] Fix clippy errors with new rust version (1.56) and float formatting with nightly Oct 22, 2021
@Dandandan Dandandan merged commit bd9d561 into apache:master Oct 22, 2021
alamb pushed a commit that referenced this pull request Oct 23, 2021
…atting with nightly (#845)

* Clippy fixes

* Test formatting fixes

* Test formatting fixes

* Fixup
alamb added a commit that referenced this pull request Oct 23, 2021
…atting with nightly (#845) (#850)

* Clippy fixes

* Test formatting fixes

* Test formatting fixes

* Fixup

Co-authored-by: Daniël Heres <danielheres@gmail.com>
ovr pushed a commit to cube-js/arrow-rs that referenced this pull request Apr 2, 2024
…atting with nightly (apache#845)

* Clippy fixes

* Test formatting fixes

* Test formatting fixes

* Fixup
ovr pushed a commit to cube-js/arrow-rs that referenced this pull request Apr 2, 2024
…atting with nightly (apache#845)

* Clippy fixes

* Test formatting fixes

* Test formatting fixes

* Fixup
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
arrow Changes to the arrow crate parquet Changes to the parquet crate
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants