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.
https://www.scalefree.com/
Apache License 2.0
144 stars 27 forks source link

Escaping Data for Data Types BOOLEAN / SUPER / GEOMETRY in Hash-Function #240

Closed MatheHostel closed 2 months ago

MatheHostel commented 3 months ago

Description

Taking correct data_type for ghost records and escaping hash-values for hashing function for data type boolean, geometry and super. These data types cannot be used in TRIM() function (in hashing-function)

Fixes #(issue)

Type of change

Please delete options that are not relevant.

How Has This Been Tested?

Configurate Hash-Columns with "is_hashdiff" with BOOLEAN / GEOMETRY / SUPER data types and create the stage. The error: function pg_catalog.btrim(boolean, "unknown") does not exist will occur.

Test Configuration:

Checklist:

tkirschke commented 3 months ago

Hi @MatheHostel ,

Thanks for your contribution! Can you please move your new macro "get_field_hash_by_datatype" into a new file within "macros/supporting/field_hash_by_datatype"?

Best regards Tim

MatheHostel commented 3 months ago

Hi @MatheHostel ,

Thanks for your contribution! Can you please move your new macro "get_field_hash_by_datatype" into a new file within "macros/supporting/field_hash_by_datatype"?

Best regards Tim

Done.

remoteworkflow[bot] commented 2 months ago

Link to workflow summary: https://github.com/ScalefreeCOM/datavault4dbt-ci-cd/actions/runs/10668880822


RESULTS for Synapse: :x: dbt-tests
:x: dbt-macro-tests


RESULTS for Postgres: :x: dbt-tests :x: dbt-macro-tests


RESULTS for BigQuery: :x: dbt-tests :x: dbt-macro-tests


RESULTS for Redshift: :x: dbt-tests :x: dbt-macro-tests


RESULTS for Snowflake: :x: dbt-tests :x: dbt-macro-tests


RESULTS for Exasol: :x: dbt-tests :x: dbt-macro-tests

remoteworkflow[bot] commented 2 months ago

Link to workflow summary: https://github.com/ScalefreeCOM/datavault4dbt-ci-cd/actions/runs/10678132620


RESULTS for Synapse: :white_check_mark: dbt-tests
:white_check_mark: dbt-macro-tests


RESULTS for Postgres: :white_check_mark: dbt-tests :white_check_mark: dbt-macro-tests


RESULTS for BigQuery: :white_check_mark: dbt-tests :white_check_mark: dbt-macro-tests


RESULTS for Redshift: :white_check_mark: dbt-tests :white_check_mark: dbt-macro-tests


RESULTS for Snowflake: :white_check_mark: dbt-tests :white_check_mark: dbt-macro-tests


RESULTS for Exasol: :x: dbt-tests :white_check_mark: dbt-macro-tests