Source Database - Teradata
BI Tool - Tableau
I have created a report in Tableau where in am fetching some data using custom sql query, the query is accessing data from Teradata database. Consider the below sql query as an example:
Select Tab1.Col1, Tab1.Col2, Tab2.Col3 from Tab1
inner join Tab2 on Tab1.col1 = Tab2.col1
where Tab1.Col1 in ('Alpha','Beta','Gamma')
Tableau reports works fine and data is retrieved.
Created a string parameter in Tableau with name P_RAYS. And passed this parameter to the custom sql query as shown below:
Select Tab1.Col1, Tab1.Col2, Tab2.Col3 from Tab1
inner join Tab2 on Tab1.col1 = Tab2.col1
where Tab1.Col1 in (<Parameters.P_RAYS>)
When only Alpha is passed to the parameter, tableau retrieves the data and report is generated accurately but when Alpha, Beta and Gamma is passed to the parameter, no data is returned in tableau.
It looks like inside custom sql query, the parameters are being processed incorrectly as 'Alpha,Beta,Gamma' and not as 'Alpha','Beta','Gamma'