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

ARROW-11722: [Rust] Improve error message in FFI cast. #9540

Closed
wants to merge 2 commits into from

Conversation

ritchie46
Copy link
Contributor

While trying to cast from pyarrow to rust I encountered the following error message: CDataInterface("The datatype \"{}\" is still not supported in Rust implementation"), which is not very informative.

This PR is very small and prints the datatype format passed to the function in the error message.

@ritchie46 ritchie46 changed the title ARROW-11722: [Rust] Imporve error message in FFI cast. ARROW-11722: [Rust] Improve error message in FFI cast. Feb 21, 2021
@github-actions
Copy link

@codecov-io
Copy link

codecov-io commented Feb 21, 2021

Codecov Report

Merging #9540 (f53ae25) into master (924449e) will decrease coverage by 0.00%.
The diff coverage is 0.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #9540      +/-   ##
==========================================
- Coverage   82.29%   82.28%   -0.01%     
==========================================
  Files         244      244              
  Lines       55616    55616              
==========================================
- Hits        45767    45766       -1     
- Misses       9849     9850       +1     
Impacted Files Coverage Δ
rust/arrow/src/ffi.rs 76.22% <0.00%> (ø)
rust/parquet/src/encodings/encoding.rs 94.86% <0.00%> (-0.20%) ⬇️

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 924449e...f53ae25. Read the comment docs.

rust/arrow/src/ffi.rs Outdated Show resolved Hide resolved
Commit suggestion.

Co-authored-by: Daniël Heres <[email protected]>
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.

Thanks @ritchie46

@alamb alamb closed this in 879e32d Feb 22, 2021
@ritchie46 ritchie46 deleted the improve_ffi_error branch February 25, 2021 08:48
GeorgeAp pushed a commit to sirensolutions/arrow that referenced this pull request Jun 7, 2021
While trying to cast from pyarrow to rust I encountered the following error message: `CDataInterface("The datatype \"{}\" is still not supported in Rust implementation")`, which is not very informative.

This PR is very small and prints the datatype format passed to the function in the error message.

Closes apache#9540 from ritchie46/improve_ffi_error

Authored-by: Ritchie Vink <[email protected]>
Signed-off-by: Andrew Lamb <[email protected]>
michalursa pushed a commit to michalursa/arrow that referenced this pull request Jun 13, 2021
While trying to cast from pyarrow to rust I encountered the following error message: `CDataInterface("The datatype \"{}\" is still not supported in Rust implementation")`, which is not very informative.

This PR is very small and prints the datatype format passed to the function in the error message.

Closes apache#9540 from ritchie46/improve_ffi_error

Authored-by: Ritchie Vink <[email protected]>
Signed-off-by: Andrew Lamb <[email protected]>
@codecov-commenter
Copy link

Codecov Report

Attention: Patch coverage is 0% with 2 lines in your changes missing coverage. Please review.

Project coverage is 82.28%. Comparing base (924449e) to head (f53ae25).

Files with missing lines Patch % Lines
rust/arrow/src/ffi.rs 0.00% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #9540      +/-   ##
==========================================
- Coverage   82.29%   82.28%   -0.01%     
==========================================
  Files         244      244              
  Lines       55616    55616              
==========================================
- Hits        45767    45766       -1     
- Misses       9849     9850       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants