Giter VIP home page Giter VIP logo

dbt-snowflake-datops-materilizations's People

Contributors

aaroncoquet-easypark avatar adhakal321 avatar jonhopper-dataengineers avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

dbt-snowflake-datops-materilizations's Issues

Best Practices Question

Hi!
I just came across this repo, and want to use it. However, I want to make sure that I do things the dbt-thonic way. How would you suggest referencing a UDF in a model, to keep dbt aware of the lineage of it?

I can think of a couple of ways:

  • Use a -- depends on: ref('...') flag in the header of any model that uses it
  • Wrap it in a macro, and put the -- depends on: ref('...') flag in the header of the macro
    • This begs the question: Why not just turn the UDF into a macro?

Do you have any advice regarding this?

Materialized view RelationType is view, so dbt tries to drop it each time and fails

Dbt 1.5.0

I am trying to use the materialized view materialization.

The materialized view is created as expected. But on the second run dbt tries to drop it, and fails with error "SQL compilation error: Object found is of type 'MATERIALIZED_VIEW', not specified type 'VIEW'."

I guess this is because dbt uses SHOW TERSE OBJECTS IN SCHEMA to determine objects types, and according to doc https://docs.snowflake.com/en/sql-reference/sql/show-objects :

For materialized views, this returns “VIEW”, not “MATERIALIZED VIEW”.

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.