Sandro Vieira de Paula
02/15/2023, 2:13 PMXiaotian Yu
02/15/2023, 3:34 PMSourceAsset
as a "starting point", which should be your first asset that directly from your database. (I think) you may save the corresponding SQL to its metadata;
3. then assume the SourceAsset
is used, e.g. asset_one
is derived from it. In the custom io manager, the load_input
method will try to get data from the source asset. (I think) load_input
uses context.upstream_output.metadata
to get the SQL you defined in the SourceAsset
.
4. similarly, asset_one
is then materialized. In asset_one
you may put how it should be saved (e.g. some SQLs) in its metadata
. (I think) handle_output
uses context.metadata
to get your SQLs.
That's what I've got so far, and pls correct me if I'm wrong!Robert Lawson
02/15/2023, 4:06 PMNone
and writing/reading to postgres is handled by a db_client resourceRobert Lawson
02/15/2023, 4:07 PMSandro Vieira de Paula
02/15/2023, 4:35 PMSandro Vieira de Paula
02/15/2023, 4:43 PM