-
-
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
jsonpath_lib_polars_vendor should not enable the serde_json's preserve_order feature by default #20208
Comments
Can we be certain it doesn't have changes to result? |
Operations on JSON object should not rely on the order of keys. |
Sure, that sounds all good theoretical, I just want to make sure we don't have a breaking change. |
Maybe you can propose a PR and see how are test suite runs? |
Where does the source of |
https://github.com/pola-rs/polars/blob/main/crates/polars-ops/Cargo.toml#L43 Should we change this dependency to the git path to see how the test suite runs? |
Yes, and if all goes well, I can republish. (It can probably also use a dependency update) |
To be honest, I am a bit skeptical of this change. We currently serialize structs as JSON objects. If I understand correctly, not preserving order would mean that they potentially come back in a different order. And this is UB, so not deterministic. If this is wanted, which I can totally imagine. It would most likely involve more changes than just changing the enabled features. |
Checks
Reproducible example
Log output
No response
Issue description
The "preserve_order" feature will make
std::mem::size_of::<serde_json::Value>() == 72
rather than32
. It should not be enabled by default.Expected behavior
Remove the "preserve_order" feature of serde_json.
Installed versions
The text was updated successfully, but these errors were encountered: