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

add more error test case and change the code style #952

Merged
merged 1 commit into from
Nov 17, 2021

Conversation

liukun4515
Copy link
Contributor

@liukun4515 liukun4515 commented Nov 17, 2021

Which issue does this PR close?

Closes #926

The Follow up pull request for the #941

Rationale for this change

What changes are included in this PR?

Are there any user-facing changes?

@github-actions github-actions bot added the arrow Changes to the arrow crate label Nov 17, 2021
@codecov-commenter
Copy link

Codecov Report

Merging #952 (ff59524) into master (b03b80c) will decrease coverage by 0.00%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #952      +/-   ##
==========================================
- Coverage   82.31%   82.31%   -0.01%     
==========================================
  Files         168      168              
  Lines       48718    48715       -3     
==========================================
- Hits        40103    40099       -4     
- Misses       8615     8616       +1     
Impacted Files Coverage Δ
arrow/src/csv/reader.rs 90.58% <100.00%> (+0.19%) ⬆️
parquet_derive/src/parquet_field.rs 65.98% <0.00%> (-0.23%) ⬇️
parquet/src/encodings/encoding.rs 93.52% <0.00%> (-0.20%) ⬇️
arrow/src/array/transform/mod.rs 85.20% <0.00%> (-0.14%) ⬇️

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 b03b80c...ff59524. Read the comment docs.

@liukun4515
Copy link
Contributor Author

@alamb PTAL

Copy link
Contributor

@alamb alamb left a comment

Choose a reason for hiding this comment

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

Thank you @liukun4515 !

bytes[offset - 1]
)));
}
bytes[0..offset].iter().rev().for_each(|&byte| match byte {
Copy link
Contributor

Choose a reason for hiding this comment

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

👍 looking much nicer!

@@ -1614,7 +1605,7 @@ mod tests {
let result = parse_decimal_with_parameter(s, 20, 3);
assert_eq!(i, result.unwrap())
}
let can_not_parse_tests = ["123,123", "."];
let can_not_parse_tests = ["123,123", ".", "123.123.123"];
Copy link
Contributor

Choose a reason for hiding this comment

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

👍

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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add decimal for CSVReader if user provide the schema with decimal
3 participants