GithubHelp home page GithubHelp logo

Comments (3)

pixie79 avatar pixie79 commented on August 23, 2024

Can we get this merged? - #51

It appears to be very useful, especially for automated pipelines. I could use it to add new sources as part of a loading pipeline. Hopefully dbt is happy with multiple files describing the source, either that or we would need to merge them somehow.

from dbt-codegen.

rahulj51 avatar rahulj51 commented on August 23, 2024

Hi, any chance if this making it to a release?

from dbt-codegen.

dbeatty10 avatar dbeatty10 commented on August 23, 2024

Thank you @rahulj51 for implementing this feature 👏 #51 is merged and will be included in the next release.

@pixie79 thank you for affirming the value for your use-case and bringing up the topic of merging YAML files.

There's two main options for describing the source:

  1. Multiple files
  2. A single file

I think 1) is a legit option since dbt allows multiple YAML files with source info as long as the model names aren't duplicated.

However, 2) is probably the most common case, and @pixie79 correctly pointed out that they need to be merged somehow.

The merging solution I'm most attracted to is a some kind of Python script that can "full outer join" two YAML files together (and/or other types of join behavior). The thing that gives me pause:

  • The two YAML libraries I've used before (ruamel.yaml and PyYAML) each left something to be desired and would possibly cause such a script to exhibit buggy behavior for the first N iterations (where N is an uncomfortably large number).

Until the magical day that such a script exists, the only remaining option is to do the merge by hand.

from dbt-codegen.

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.