My redshift query is :
SELECT A.NAME, A.Date, A.DATA FROM Table Where A.Name in %(input_name)s
This works find when input_name is provided.