z3z1ma / dbt-osmosis

Provides automated YAML management, a dbt server, streamlit workbench, and git-integrated dbt model output diff tools
https://z3z1ma.github.io/dbt-osmosis/
Apache License 2.0
422 stars 45 forks source link

Table description not populating downstream #65

Closed jaredx435k2d0 closed 1 year ago

jaredx435k2d0 commented 1 year ago

I have the following files:

_schema_name__sources.yml:

version: 2

sources:
  - name: [my_source_name_redacted]
    database: [my_db_name_redacted]
    schema: [my_schema_name_redacted]
    tables:
      - name: current_fbm_inventories
        description: 'Stay away from this table, use current_inventories instead'
        columns:
          - name: PRODUCT_ID
          - name: FBM_QUANTITY

_stg_source_name.yml:

version: 2

models:

  - name: stg_[source_name]__current_fbm_inventories
    description: ""
    columns:
      - name: PRODUCT_ID
      - name: FBM_QUANTITY

stg_[source_name]__current_fbm_inventories.sql:

SELECT
    PRODUCT_ID
,   FBM_QUANTITY

FROM
    {{ source("source_name", "current_fbm_inventories") }}

The description in _schema_name__sources.yml doesn't appear in _stg_source_name.yml when I run dbt-osmosis yaml refactor.

It should, right?

dbt-core==1.4.6 dbt-extractor==0.4.1 dbt-osmosis==0.11.17 dbt-snowflake==1.4.2

Python 3.10.10

z3z1ma commented 1 year ago

Hello @jaredx435k2d0 ! 👋

This is the same thing as before. https://github.com/z3z1ma/dbt-osmosis/issues/52#issuecomment-1490963004

Going to close this as its not an issue. We can continue discussion in #52 Its all possible, I just don't have time at the moment. Hopefully soon, I am keen on integrating openai personally ;) .

jaredx435k2d0 commented 1 year ago

Oops. So sorry. Totally forgot about that other issue. I could've sworn I'd actually run yaml refactor and had it actually do this before. I guess not!