Skip to content
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

Drop is translated into a Projection which creates issues for inconsistent partitions #781

Open
phofl opened this issue Jan 19, 2024 · 0 comments
Milestone

Comments

@phofl
Copy link
Collaborator

phofl commented Jan 19, 2024

see test_drop_meta_mismatch in dask/dask

drop currently is translated into a Projection which is based on meta, so if some partition don't have some of those columns then you will run into KeyErrors, this can potentially be problematic.

A potential workaround is to create it's own Expression class and let it inherit from Projection so that it is taken into account in all optimisations, I have to think a little bit more about this if this is really a good idea

@phofl phofl added this to the TODO Features milestone Jan 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant