datavault4dbt icon indicating copy to clipboard operation
datavault4dbt copied to clipboard

List of columns for hashdiff with include/exclude parameters

Open bschlottfeldt opened this issue 1 year ago • 1 comments

Discussed in https://github.com/ScalefreeCOM/datavault4dbt/discussions/108

Originally posted by marcinsiewiera August 2, 2023 Hi All,

Is there a way to define columns for change hash in stage macro by specifying columns to be excluded rather than listing all columns 1 by 1? Instead of using

hd_lineitem_n_s:
    is_hashdiff: true
    columns:
        - col1
        - col2
        - col3
        - ....
        - col50
        - ...

exclude business key

    columns:
      - include: '*' 
        exclude:
          - businessKey
          - hashKey
          - changeHash
          - loaddate
          - recordsource
          - ...

Regards, Marcin

bschlottfeldt avatar Sep 13 '23 08:09 bschlottfeldt

This issue is stale because it has been open for 90 days with no activity. If you would like the issue to remain open, please remove the stale label or comment on the issue. Otherwise it will be closed in 14 days

github-actions[bot] avatar Jul 08 '24 06:07 github-actions[bot]