I have sql file and I want to pass parameters to that sql file using PostGresOperator.
"""select * from table_{} where id > ID """.format(mytable,myID)
My postGresOperator
mport_redshift_table = PostgresOperator(
task_id='copy_data_from_redshift_{}'.format(country),
postgres_conn_id='postgres_default',
sql="""
select * from table_{} where id > {}
""".format(mytable,myID)
How can I do the same and pass my parameters in my .sql file and still use .format(mytable,myID) ?
so that I can pass them into my referenced .sql file.