z3z1ma / dbt-osmosis

Provides automated YAML management, a dbt server, streamlit workbench, and git-integrated dbt model output diff tools

Home Page:https://z3z1ma.github.io/dbt-osmosis/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Table description not populating downstream

jaredx435k2d0 opened this issue · comments

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

Hello @jaredx435k2d0 ! 👋

This is the same thing as before.
#52 (comment)

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 ;) .

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!