Skip to content

Add troubleshooting guide for Redshift rETL #4849

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jun 27, 2023
Merged

Conversation

joeynmq
Copy link
Contributor

@joeynmq joeynmq commented Jun 7, 2023

Proposed changes

The customer has encountered an error when initiating the first sync from their Redshift rETL source:

relation "tb_customers" does not exist

However, they were able to retrieve the records when testing in query builder. Here is the query they were using:

SELECT id id_do_cliente, email, document, name, telephone, date(created_at) cadastro_em 
FROM tb_customers

In the end, the issue was resolved by adding the schema name in front of the database table name:

SELECT id id_do_cliente, email, document, name, telephone, date(created_at) cadastro_em 
FROM <schema_name>.tb_customers

Supporting docs - Starting with Amazon Redshift Cluster for SQL Database Developer

If you don't use the schema name and execute the SELECT statement directly on "tables" table, you will get the execution exception:

Amazon Invalid operation: relation "tables" does not exist;

If you get such an error, be sure you are using the schema name in front of the database table name and check the schema name is correct.

Merge timing

ASAP once approved

@joeynmq joeynmq requested a review from a team as a code owner June 7, 2023 02:48
@joeynmq joeynmq requested review from rchinn1 and removed request for a team June 7, 2023 02:48
@joeynmq joeynmq added the KCS label Jun 7, 2023
@joeynmq joeynmq marked this pull request as draft June 7, 2023 02:52
@rchinn1 rchinn1 self-requested a review June 7, 2023 16:10
@joeynmq joeynmq marked this pull request as ready for review June 27, 2023 07:18
@rchinn1 rchinn1 merged commit 6254c50 into develop Jun 27, 2023
@rchinn1 rchinn1 deleted the joeynmq-patch-1 branch June 27, 2023 17:24
@github-actions
Copy link
Contributor

Thank you for your contribution! Your pull request is merged, but may take a day or two to appear on the site.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants