Column rename does not update schema and subsequent operations fail #22779
Labels
bug
Something isn't working
needs triage
Awaiting prioritization by a maintainer
rust
Related to Rust Polars
Checks
Reproducible example
Log output
Issue description
When renaming a column in a dataframe, it seems the schema does not get updated accordingly and subsequent operations, like the Join operation in the provided example fail.
The example uses the lazy api for joining, but the issue exists when joining with the non-lazy api as well.
When I serialze the frame to parquet it seems to get serialized correctly and if I re-read it from the serialized format before using it in the join operation, the join succeeds.
This might be a duplicate of #20407.
Expected behavior
Renaming a column should update the schema and subsequent operations should be able to assume, that the new column name exists.
Installed versions
polars = { version = "0.47.1", features = ["dtype-full", "lazy"] }
The text was updated successfully, but these errors were encountered: