-
Notifications
You must be signed in to change notification settings - Fork 36
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
Bump rust-polars to 0.40.0 #1104
Conversation
06abd2d
to
a923b56
Compare
a923b56
to
092bb4c
Compare
75fc5f6
to
5ad880b
Compare
Thanks for starting the work. Of course I'll take a look at this, but it looks like a pretty tough update and I don't know if I can complete it in a few days. |
It can now be compiled, but the rolling functions will probably need to be rewritten. |
@etiennebacher Thanks for your great works! On my machine, the R session hangs on the expr_name test (so I have renamed the test file to disable the tests for now) and the following part seems to cause a panic. r-polars/tests/testthat/test-series.R Line 508 in 3d2a333
I think the hang in the R session may be due to the implementation of Send and Sync at the following location, but I do not know why this has now occurred. r-polars/src/rust/src/utils/extendr_concurrent.rs Lines 11 to 18 in 3d2a333
|
Hmmm, it looks like there is a problem with the way the DataFrame is constructed. > pl$DataFrame(a = as_polars_series(list(list(1, 2, 3), list(4, 5, 6))))
thread '<unnamed>' panicked at /usr/local/cargo/git/checkouts/polars-b0d90607192fd414/7bc7014/crates/polars-core/src/series/mod.rs:149:37:
called `Result::unwrap()` on an `Err` value: InvalidOperation(ErrString("`vec_hash` operation not supported for dtype `list[f64]`"))
thread '<unnamed>' panicked at src/rdataframe/mod.rs:89:1:
explicit panic
Error: Execution halted with the following contexts
0: In R: in $DataFrame():
0: During function call [pl$DataFrame(a = as_polars_series(list(list(1, 2, 3), list(4,
5, 6))))]
1: user function panicked: select > pl$select(a = as_polars_series(list(list(1, 2, 3), list(4, 5, 6))))
thread '<unnamed>' panicked at /usr/local/cargo/git/checkouts/polars-b0d90607192fd414/7bc7014/crates/polars-core/src/series/mod.rs:149:37:
called `Result::unwrap()` on an `Err` value: InvalidOperation(ErrString("`vec_hash` operation not supported for dtype `list[f64]`"))
thread '<unnamed>' panicked at src/rdataframe/mod.rs:89:1:
explicit panic
Error in .pr$DataFrame$select(self, unpack_list(..., .context = "in $select()")) :
user function panicked: select |
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.
There are several unresolved issues with this PR, but I think we can merge and do the follow-up work for now.
This reverts commit 4f157bf.
map method errors are only on Linux, so may be related to pola-rs/polars#16365 Edit: It does not seem related. |
More related issue: pola-rs/polars#12568 |
I do not know why |
I don't understand why this process has to be done on the Rust side. In any case, I think we can merge them as they are now and fix them later. (I don't think I will have enough time for a while down the road) |
This is a side note, but what I have learned is that upstream is not very interested in Rust's breaking changes, and the release notes are of little use. So in the future, I think it is better to proactively incorporate changes from HEAD without waiting for Rust releases. |
Thanks a lot, I'll take a look at the remaining issues to see if I can come up with a fix for them. In any case, I'll update the NEWS before merging.
The release notes are sometimes useful. They are messy but it can really help going through bugs or changes in implementation. I agree we shouldn't feel forced to wait for an official release but I also think it matches quite well the pace of development (release every ~1.5 month). There were several trivial bug fixes upstream just after 0.40.0 were released, I think we should bump the version to an unreleased version but we should do it in another PR. |
Follow-up tasks should include the followings:
|
https://github.com/pola-rs/polars/releases/tag/rs-0.40.0
@eitsupi I'll have limited time in the next few days to address this (we are not in rush, it's just so you know)