-
Notifications
You must be signed in to change notification settings - Fork 4k
ARROW-11778: [Rust] Cast from LargeUtf8 to Numerical and temporal types #9571
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
Conversation
ad24ce3 to
cda7de3
Compare
nevi-me
left a comment
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.
LGTM
|
@ritchie46 you have unused imports somewhere |
|
I'll fix the clippy lints, and merge this after #9425 |
|
@nevi-me thanks. Sorry about the lints, I totally forgot them today. |
3ca7ead to
312c082
Compare
|
The integration test failure seems like it is unrelated to the changes in this PR: https://issues.apache.org/jira/browse/ARROW-11717 |
|
|
||
| #[test] | ||
| fn test_cast_string_to_timestamp() { | ||
| let a = StringArray::from(vec![ |
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.
I recommend adding coverage here to convert from LargeUtf8 string arrays as well - I don't think they are covered by these tests
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.
@nevi-me I just fixed this test. I already modified the test with that intention but I apparently tested stringarray twice instead of stringarray and largestringarray
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.
Thanks @ritchie46 !
Sorry that the PR's are not more clustered, but they occur to me in the wild.
This PR allows casting from LargeUtf8 to numerical and temporal types. It also modifies the already existing string to temporal casts such that it uses the new faster
from_trusted_lengthiterator API.