Skip to content
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

Issues with v_generate_tbl_ddl.sql #613

Open
daviibf opened this issue Apr 22, 2022 · 1 comment
Open

Issues with v_generate_tbl_ddl.sql #613

daviibf opened this issue Apr 22, 2022 · 1 comment

Comments

@daviibf
Copy link

daviibf commented Apr 22, 2022

Hello everyone,

Thank you in advance for your help.

This script is incredibly useful and I've used it many times. However, I encountered a problem and I still couldn't understand how to solve it as the query is quite complex.

I made a data model for the DDL of my entire Redshift DW and most of the tables have a correct ddl. But for some of them I have the current ddl (table creation and comments) but also the older instructions. Instead of having a single table creation with comments, I have the current query as well as the oldest table update.

Is there any chance that the problem lies in the fact that the sql script is retrieving the entire history of DDL's instead of just the most recent one? Maybe the timestamp range which is chosen...

Hope you guys can help me. I am not yet an expert on Redshift.

@timjell
Copy link
Contributor

timjell commented Aug 15, 2022

Thanks for the information. Are you able to reproduce this with a new table? Or was there a specific change to those tables that are showing duplicates?

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

No branches or pull requests

2 participants