Afiq Johari
06/25/2024, 9:03 AM"B.trade":
type: pandas.SQLQueryDataset
sql: "select * from YTB"
"A.trade":
type: pandas.SQLQueryDataset
sql: "select * from RET"
And I want to factor the above in data catalog based on the namespace.
But not quite sure how to associate each namespace with the right table name. Thanks!
"{namespace}.trade":
type: pandas.SQLQueryDataset
sql: "select * from ??"
marrrcin
06/25/2024, 9:06 AM"{namespace}.trade":
type: pandas.SQLQueryDataset
sql: "select * from {namespace}"
Whenever you will use something like "A.trade"
as dataset name in your Kedro pipeline it will effectively be as if you had defined:
"A.trade":
type: pandas.SQLQueryDataset
sql: "select * from A"
Afiq Johari
06/25/2024, 9:15 AMJuan Luis
06/25/2024, 9:28 AM_mappings:
A: YTB
B: RET
"{namespace}.trade":
type: ...
sql: "select * from ${_mappings[namespace]}"
I have not tried this and have no idea if it worksmarrrcin
06/25/2024, 10:18 AMAfiq Johari
06/26/2024, 3:27 AM