https://dagster.io/ logo
Title
d

Daniel Gafni

04/14/2023, 8:52 AM
After upgrading to
1.2.7
, Dagit started recognizing non-partitioned assets as partitioned when materialized from the launchpad (shift+click on materialize)
d

daniel

04/14/2023, 2:07 PM
Hi Daniel - we’re having some trouble reproducing this on 1.2.7, any chance you’d be able to share more details about the assets where you’re seeing this?
d

Daniel Gafni

04/14/2023, 2:14 PM
what kind of details? The non-partitioned asset is used as input to a partitioned asset
d

daniel

04/14/2023, 2:15 PM
The ideal would be code that reproduces, but I’ll make sure that we have tried that
d

Daniel Gafni

04/14/2023, 2:20 PM
well ok.. I can't provide a reproducible example right now as I'm busy, but I can have a short call with you and show my existing code, would that work?
d

daniel

04/14/2023, 2:35 PM
we can try a bit more with that information first - this was an upgrade from 1.2.6?
d

Daniel Gafni

04/14/2023, 2:35 PM
yeah
Here is the asset (you can see it doesn't have partitions) and the result of shift-clicking it
d

daniel

04/14/2023, 2:38 PM
tagging in @sean who was attempting to reproduce this earlier
d

Daniel Gafni

04/14/2023, 2:40 PM
Perhaps I had this asset partitioned before... I don't remember exactly, I think most likely it wasn't partitioned, but maybe worth checking this case. It certainly isn't partitioned now (and was not partitioned on 1.2.6)
d

daniel

04/14/2023, 2:50 PM
hmm so I believe i am reproducing this now, but I'm also reproducing it on 1.2.6 (and 1.2.4). We'll definitely get it fixed either way but are you certain yours only started happening in the release yesterday? My repro is pretty simple:
from dagster import DailyPartitionsDefinition, Definitions, asset


@asset
def my_non_partitioned_asset():
    return 4


@asset(partitions_def=DailyPartitionsDefinition(start_date="2022-01-01"))
def my_daily_partitioned_asset(context):
    return 6


defs = Definitions(assets=[my_non_partitioned_asset, my_daily_partitioned_asset])
(any additional QA is entirely optional, by the way - thank you for reporting and we're also happy to just take it from here)
Filed a bug here with my understanding of the problem: https://github.com/dagster-io/dagster/issues/13638 - the good news is you can ignore the warning and hit Confirm and nothing bad will happen
d

Daniel Gafni

04/14/2023, 2:57 PM
I think I started getting this bug after 1.2.7. I'm not very certain, but it seems like it.
d

daniel

04/14/2023, 2:58 PM
Go it - we'll get it fixed either way
❤️ 1