0

Is there a way to interpolate a SQLDataset query in catalog.yml passing some argument\parameter. Example:

person:
  type: pandas.SQLQueryDataSet
  sql: "SELECT * FROM public.people WHERE id = ${id};"
  credentials: db_credentials

Thanks in advance!

Nikola
  • 620
  • 2
  • 5
  • 18

1 Answers1

1

As answered on slack you can use TemplatedConfigLoader, but beware of SQL injection risks!

datajoely
  • 1,466
  • 10
  • 13