https://dagster.io/ logo
Title
c

Caleb Parnell Lampen

04/18/2023, 7:33 PM
I tried loading a partitioned asset value with
load_asset_value
without specifying a partition, and got a very unhelpful error. I think the function tried to load the parent directory containing the partitioned asset with pickle as though it was the pickled file, giving me an unhelpful
IsADirectoryError
. I eventually realized the problem was I wasn't specifying a
partition_key
. It would be helpful if, in a case like this, the error message told me explicitly to supply a partition key for a partitioned asset, rather than leave it to the lower level pathlib to throw an error that doesn't explain what I did wrong.
t

Tim Castillo

04/19/2023, 2:28 AM
Thanks for the feedback! Yeah, that does sound like an unhelpful error. I'll bring it back to the team. Thanks for trying out
load_asset_value
! It's one of my favorite hidden gems of Dagster.
c

Caleb Parnell Lampen

04/19/2023, 4:37 PM
Yeah, seems like a really nice feature.