Code Monkey home page Code Monkey logo

Comments (1)

entechlog avatar entechlog commented on July 21, 2024

@robscriva , Sorry it took so long to get back to you on this one

  • Just was testing this out and unapply works in post/pre-hooks
  • Here are the steps I followed, added post-hook
  post-hook: 
    - "{{ dbt_snow_mask.unapply_masking_policy('models') }}"
  • Executed the models by dbt run and it ran fine removing the policy
00:17:54  Running with dbt=1.0.1
00:17:54  Unable to do partial parsing because a project config has changed
00:18:00  Found 1 model, 0 tests, 0 snapshots, 0 analyses, 404 macros, 0 operations, 1 seed file, 1 source, 0 exposures, 0 metrics
00:18:00  
00:18:04  Concurrency: 10 threads (target='dev')
00:18:04  
00:18:04  1 of 1 START view model staging.stg_customer.................................... [RUN]
00:18:05  00:18:05 | creating masking policy           : DEMO_DB.STAGING.MP_ENCRYPT_PII
00:18:06  00:18:06 | unapplying masking policy to model  : DEMO_DB.STAGING.MP_ENCRYPT_PII on DEMO_DB.staging.stg_customer.email
00:18:07  1 of 1 OK created view model staging.stg_customer............................... [SUCCESS 1 in 2.52s]
00:18:07  
00:18:07  Finished running 1 view model in 7.09s.
00:18:07  
00:18:07  Completed successfully
00:18:07  
00:18:07  Done. PASS=1 WARN=0 ERROR=0 SKIP=0 TOTAL=1
  • Did I miss something in understanding your request ?

from dbt-snow-mask.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.