Trying to create a Redshift table using Python and psycopg2 but the table does not get created with no errors reported
问题 My codes return no error but I don't see a table in Redshift...if I put "if table exist" and try to create a table I know exists it does nothing and returns no error. Take that out and it will return duplicatetable error which is odd. import boto3 import psycopg2 import sys #Assign global variables data needed to make connection to Redshift DB_NAME = '<database>' CLUSTER_IDENTIFIER = '<clusterName>' DB_USER = '<user>' ENDPOINT = '<clustername>.<randomkey>.us-east-1.redshift.amazonaws.com'