I have below requirement in python,where I need to pass date and id at run time.
query_str="select * from test_table where data_date = '${data_date}' and id = ${id}"
Where data_date is string column and id is big int column.
If i'm passing data_date as 2015-01-01 and id as 1, it should replace the parameters as below.
Output : select * from test_table where data_date = '2015-01-01' and id = 1