How do I get the partition key out of this? (Insid...
# ask-community
d
How do I get the partition key out of this? (Inside of a
handle_output
for a
MultiPartition
)
PartitionDimensionDefinition(name='dogs', partitions_def=DynamicPartitionsDefinition(partition_fn=None, name='doggo'))
🤖 1
I ended up doing,
Copy code
keys = [
context.partition_key.keys_by_dimension[dim]
for dim in context.asset_partitions_def.partitions_defs
]
👍 1
🌈 1