Skip to content

Departitioning a previously partitioned asset leads to run failure #33614

Description

@TabLand

What's the issue?

Departitioning a previously partitioned asset leads to run failure as the existing asset folders are not deleted before they are replaced with pickled files.

PermissionError: [Errno 13] Permission denied: 'dagster_home\\io\\asset_name'

What did you expect to happen?

After introducing partitioning, pickled files from previous materialisations are wiped and replaced with a folder structure inside DAGSTER_HOME\io\asset_name\partition_name

However, this does not occur on the reverse.

How to reproduce?

  1. Materialize a partitioned asset using dagster.FilesystemIOManager
  2. Remove partitioning
  3. Materialize the now departitioned asset

Dagster version

1.7.7

Deployment type

None

Deployment details

Python 3.9, Windows Server 2019

Additional information

I need to check if this occurs on the latest version of dagster.
Manual workaround: Delete the affected partition folder(s), i.e: DAGSTER_HOME\io\asset_name and then rematerialize

Message from the maintainers

Impacted by this issue? Give it a 👍! We factor engagement into prioritization.

Activity

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

    type: bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions