Skip to content

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

Open

Description

@phofl

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

Activity

  1. added this to the TODO Features milestone on Jan 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions