Alvin Yeap
01/12/2023, 1:41 PM@asset
) because <some_id> is only known at Job run time and not at Definition/Deployment time (so I cannot use <some_id> as a partition key).
• I cannot write a custom io_manager
to handle the writing and reading of these database rows because there’s no way to pass the io_manager
the value of <some_id>.
So, instead, what I’ve done instead is:
• Have a generic Op write_to_db
that is then configured for each database table. This allows me to also log an AssetMaterialization event within write_to_db
.
Can you please let me know if my understanding is correct? Or, is there a better/canonical way to achieve what I need? Ideally I would love runtime asset partitions to get all the benefits of software-defined assets for my pipeline.sandy
01/12/2023, 10:03 PMOr, is there a better/canonical way to achieve what I need? Ideally I would love runtime asset partitions to get all the benefits of software-defined assets for my pipeline.I think you've hit the nail on the head here. This is on our current roadmap: we hope to have it done within the next six weeks.
sandy
01/12/2023, 10:05 PMAlvin Yeap
01/13/2023, 11:08 AMAlvin Yeap
02/02/2023, 5:50 AMsandy
02/02/2023, 6:09 PMAlvin Yeap
02/03/2023, 7:09 AMLouis Auneau
02/20/2023, 10:15 PMpartition_fn
function could use resources of the project to fetch the list of partitions ?claire
02/21/2023, 5:25 PMdynamic_partitioned_config
decorator existed prior to new functionality introduced on DynamicPartitionsDefinition
. We don't currently have built in support for partition_fn
to fetch the list of partitions, though you could create your own PartitionedConfig
object that accepts a DynamicPartitionsDefinition(name=...)
instance.
Something to be aware of is that this functionality is experimental, so still subject to change.Louis Auneau
02/21/2023, 8:33 PMDynamicPartitionsDefinition.add_partitions
each time a sensor detects a new file ? Is this function idempotent ?claire
02/21/2023, 8:54 PMLouis Auneau
02/21/2023, 8:55 PMsandy
02/23/2023, 4:25 PMAlvin Yeap
02/23/2023, 11:36 PMLouis Auneau
03/01/2023, 9:17 PMsandy
03/01/2023, 9:28 PMAlvin Yeap
03/17/2023, 11:31 AMAlvin Yeap
03/17/2023, 11:32 AMdagster._check.CheckError: Failure condition: Tried to access partition key for output 'result' of step 'my_test_asset', but the step output has a partition range: '3ed0c08f-83e8-4cad-8e32-7023bcb412aa' to '87f3d90d-f5c9-445b-909b-1c6b521b0c03'.
claire
03/17/2023, 4:56 PM