I'm using the Airflow PostgresOperator with argument parameters
in order to replace the table name of my sql query with the one contained in my dictionary. For example:
create_table = PostgresOperator(sql='DROP TABLE if exists %(my_table)s;',
parameters={'my_table':'my_name'},...)
Problem is when operator is executed, the rendered sql is DROP TABLE if exists 'my_name'
and not DROP TABLE if exists my_name
as expected (and of course this operation fails).
How to force Airflow not to put single quotes around rendered name?