amazon-redshift-utils icon indicating copy to clipboard operation
amazon-redshift-utils copied to clipboard

v_generate_external_tbl_ddl generates invalid ddl

Open hellekin08 opened this issue 10 months ago • 0 comments

Hi,

we are currently migrating some external tables into a new database and rely on the admin view v_generate_external_tbl_ddl to reconstruct the DDL. However, in some cases it seems that the view generates faulty SQL statements. We do not know when this happens but it might be related to complex data types like arrays / structs.

Here is an example: image

In each case we found it seems to be that at least the data type & the closing brackets are missing. Help would be appreciated!

kind regards Maik

hellekin08 avatar Apr 26 '24 13:04 hellekin08