Sebastien
08/25/2023, 1:03 PMclaire
09/07/2023, 12:09 AMio_manager_key
will be used when loading dta_f0101
as an input or persisting it as an output. So io_manager_oracle.load_input
will only be called by assets downstream of dta_f0101
when trying to load dta_f0101
.
It seems like you want to instead load specific contents as an input to dta_f0101
. You can do something like this:
source = SourceAsset("source", io_manager_def=custom_io_manager)
@asset
def dta_f0101(context, source):
<http://context.log.info|context.log.info>(source)
...
What this does is it defines a source asset upstream of dta_f0101
, and assigns that source asset your custom IO manager. So when dta_f0101
executes, it has to load the source asset by calling your custom IO manager's load_input
method.Sebastien
09/07/2023, 8:17 AMSebastien
09/07/2023, 9:32 AMSebastien
09/07/2023, 11:13 AM