Resolution
Option 1
Do not define primary and foreign key constraints in DDL when creating tables in Amazon Redshift.
Option 2
Create and use an extract in Tableau.
For more details, refer to Create an extract and Create Extracts on the Web.
Option 3
Edit the data source, generate and use a custom SQL query in Tableau by converting a Connection to Custom SQL.
For more details, refer to Converting a Connection to Custom SQL.
Option 4
Set the capability customizations in the Tableau Datasource Customization (TDC) file to prevent Tableau from attempting to read metadata describing primary and foreign key constraints.
For more details, refer to Tableau Capability Customizations Reference.