Giter Club home page Giter Club logo

Comments (3)

gunnarmorling avatar gunnarmorling commented on June 19, 2024

@rmetzger Another pipeline which couldn't be created via dbt.

from dbt-decodable.

nicoweidner avatar nicoweidner commented on June 19, 2024

An issue related to this and #5:
If the target stream is created manually as a change stream, then dbt-decodable deletes the change stream, creates a new append stream and then throws this error.

edit: I suspect this code block is repsonsible for this behavior:

{% if existing_relation is not none %}
{% set watermark = config.get('watermark') %}
{% if adapter.has_changed(sql, target_relation, watermark) or should_full_refresh() %}
{{ adapter.drop_relation(existing_relation) }}
{% do should_create.update({'value': true}) %}
{% endif %}

edit2: This issue is also discussed here: #10 (comment)

from dbt-decodable.

nicoweidner avatar nicoweidner commented on June 19, 2024

@gunnarmorling This should be fixed by #10 as well. Note that you will need to designate a primary key for the target stream in order to create a change stream, using a line like this at the top of the sql file:

{{ config(primary_key="order_id") }}

from dbt-decodable.

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.