ScalefreeCOM / datavault4dbt

Scalefree's dbt package for a Data Vault 2.0 implementation congruent to the original Data Vault 2.0 definition by Dan Linstedt including the Staging Area, DV2.0 main entities, PITs and Snapshot Tables.

Home Page:https://www.scalefree.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Update PIT implementation in Redshift

allan-cin opened this issue · comments

I see that you are using COALESCE(LEAD(TIMESTAMP_SUB({{ ldts }}, INTERVAL 1 MICROSECOND)) in PIT for Redshift. However TIMESTAMP_SUB and INTERVAL 1 MICROSECOND are not supported by Redshift.

also,
{%- set hash_dtype = var('datavault4dbt.hash_datatype', 'STRING') -%}
the default data type should be VARCHAR since STRING is also not supported by redshift

Hey Allan,

thanks for your feedback, if you've already fixed it yourself feel free to open a PL otherwise we will implement a fix for that in the upcoming release.

Best regards,
Tim