-
Notifications
You must be signed in to change notification settings - Fork 23
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
Redshift patch #170
base: main
Are you sure you want to change the base?
Redshift patch #170
Conversation
Bring my development branch up-to date
Added all the datatypes and their aliases
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please review macro for ghost_record_per_datatype and align code with other adapters.
{%- elif datatype == 'FLOAT' %} CAST('0' as FLOAT) as {{ alias }} | ||
{%- elif datatype == 'BOOLEAN' %} CAST('FALSE' as BOOLEAN) as {{ alias }} | ||
{%- elif datatype == 'VARBINARY' %} 'NULL'::varbyte as {{ alias }} | ||
{%- elif datatype == 'VARCHAR' or datatype == 'CHARACTER VARYING' or datatype == 'NVARCHAR' or datatype == 'TEXT' %} '{{unknown_value__STRING}}' as {{ alias }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please group the datatypes into array for ease of extending this code in the future, see line 363.
Same for the following code lines.
Change hash_datatype from BINARY(16) to VARCHAR(32) for Redshift Compatibility
change hardcoded default hash_datatype to varchar(32) for redshift macros
Added an Adapter Dispatch
Changed Snowflake aliases to "{{ alias }}"
Tkirschke patch 3 to Redshift Patch
Added double quotes to the keys and a case wise handling so that the hashdiffs do not get double quoted. Added these changes as a snowflake version
Added more exceptions to the if clause
Hi @thoffmann-sf , Best regards |
Added all RedShift datatypes to the Ghost_Records_per_Datatype macro and fixed the other macros that were broken for RedShift and Postgres