[rust-0.44] No way to mutate MutableStructArray #19585
Labels
accepted
Ready for implementation
bug
Something isn't working
needs triage
Awaiting prioritization by a maintainer
rust
Related to Rust Polars
Checks
Issue description
In #19123, the
mut_values()
method was removed fromMutableStructArray
. As far as I can tell, there is no way to add elements toMutableStructArray
anymore. I've gone through all the APIs available in the docs & also gone through the code base. The only workaround seems to be to copy theMutableStructArray
code & re-addmut_values
.All other similar
MutableXYZArray
still provide one way or another (eithermut_values()
orpush()
) to mutate the data. Also, there are two places in the code base where a similar struct is used & both of them still providemut_values()
method.Expected behavior
My personal preference would be to re-add the
mut_values()
method. If that is something the devs want to do away with, we at least needpush()
& preferablyextend()
.Installed versions
The text was updated successfully, but these errors were encountered: