https://dagster.io/ logo
#ask-community
Title
# ask-community
d

Drew You

03/21/2023, 5:21 PM
I've got a bit of a head scratcher. This seems like a library bug, but I can't believe this would have gone unnoticed.
Copy code
dagster._check.ParameterCheckError: Param "partition_mapping" is not a PartitionMapping. Got <class 'dagster._core.definitions.partition_mapping.AllPartitionMapping'> which is type <class 'abc.ABCMeta'>.
The relevant code in the asset is:
Copy code
@asset(
    required_resource_keys={"duckdb"},
    ins={
        "asset1": AssetIn(partition_mapping=AllPartitionMapping),
        "asset2": AssetIn(partition_mapping=AllPartitionMapping),
    },
)
j

jamie

03/21/2023, 6:14 PM
I think you might need to fully instantiate the
AllPartitionMapping
Copy code
@asset(
    required_resource_keys={"duckdb"},
    ins={
        "asset1": AssetIn(partition_mapping=AllPartitionMapping()), # added ()
        "asset2": AssetIn(partition_mapping=AllPartitionMapping()), # added ()
    },
)
❤️ 1
2 Views