-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Group By no longer supported in Rust WASM #17192
Group By no longer supported in Rust WASM #17192
Comments
Hmm... The |
Hi @ritchie46, not sure if I understand, |
I see that the |
I quickly checked the impact of the above, and the code becomes a bit less appealing using let offsets = if std::mem::size_of::<usize>() % std::mem::size_of::<i64>() == 0 {
// We can safely convert usize to i64
bytemuck::cast_vec::<usize, i64>(offsets)
} else {
offsets.iter().map(|&i| i as i64).collect()
}; It checks if it can simply convert, or in worst-case (for wasm) it will have some performance impact because it needs to cast the encoded rows. |
Any update on this issue? |
I created a PR which waits for a review |
Hi @ritchie46, please take some time to review the PR. Let me know what you are unhappy with. Without this PR WASM does not work. |
Any update on this issue? |
Checks
Reproducible example
Log output
Issue description
With the changes to Polars to make group by use row encoding, it seems that this required 64bit support which Web Assembly doesn't. It seems like it isn't possible to use group_by anymore in WASM
Expected behavior
Carry out group_by operations when compiling polars (with default feature false, lazy true) for WASM and use it in browser with wasm-bindgen
Installed versions
0.41.2
The text was updated successfully, but these errors were encountered: