Open louis-jaris opened 5 months ago
(I am not sure, but this might be linked to https://github.com/dagster-io/dagster/issues/13357 that is still open, and that the documentation seems to indicate this is possible)
This is still present, as of today, in 1.7.5
Dagster version
dagster, version 1.7.0
What's the issue?
With dagster instance default configuration, it is impossible to consistently use
@asset
using static partitions (of size 1, 2, 3, or more) with@op
and op's@job
that are partitioned the same way (c.f. fully working example attached to reproduce).It is impossible to have dagster properly inject the partitioned asset into the partioned job (dagster is injecting the merged asset, that is composed of
{"partition_key_1": partition_value_1, "partition_key_2": partition_value_2, "partition_key_3: partition_value_3, ...}
. And worse: if the partition is of size 1, then the issue disapear, and the system behave like if it was not partitioned (making the dagster type checking work, c.f. code and stack trace below).What did you expect to happen?
I was expecting, as the documentation describes it (c.f. https://docs.dagster.io/concepts/ops-jobs-graphs/graphs#loading-an-asset-as-an-input) to seamlessly integrate partitioned
@asset
with partitioned@job
and@op
.In other words, it is impossible to have the following code to work (that is adapted from your documentation) :
How to reproduce?
Having a file called
bug_definition.py
containing the code below:This code contains comments around the bug, search for the string
BUG NOTE
andXXX
.And starting
dagster
like the following:Wait one or two minutes (the time the job kicks in). Error logs should appear in the terminal (and in the UI) with the following stack trace:
Deployment type
None
Deployment details
Local development only. No
workspace.yaml
, nordagster.yaml
. Fresh install, no dependencies (c.f. how to reproduce). Usingdagster dev
only.Additional information
I've been trying to reproduce this issue using unit test, but I wasn't able to properly tests
@job
(by passing a materialized partitioned asset), so this is why I can only present you with this script to run...Message from the maintainers
Impacted by this issue? Give it a 👍! We factor engagement into prioritization.