Skip to content

nao context: orders model description in dbt schema.yml is vague and was the subject of a manual edit request - #1

Open
Bl3f wants to merge 1 commit into
duckdbfrom
nao/context-5a73fd3e-mq7zzeib
Open

nao context: orders model description in dbt schema.yml is vague and was the subject of a manual edit request#1
Bl3f wants to merge 1 commit into
duckdbfrom
nao/context-5a73fd3e-mq7zzeib

Conversation

@Bl3f

@Bl3f Bl3f commented Jun 10, 2026

Copy link
Copy Markdown

Proposed by nao context recommendations.

Why: A user opened a chat to change the dbt orders description, stating it "should be 'orders paid last month'". The current schema.yml description ("This table has basic information about orders, as well as some derived facts based on payments") is vague and does not state the grain, key, or that amount is already aggregated. The orders model is NOT filtered to last month, so "orders paid last month" would be factually wrong — but the recurring desire to edit this description signals the metadata is unclear and should be made precise.

Fix: Clarify the orders model description in repos/dbt/models/schema.yml to state grain and revenue semantics, e.g. "One row per order (key: order_id). amount is the total order value (AUD), already aggregated across all payment methods." Do not set it to "orders paid last month" since the model is not date-filtered; if a last-month-paid metric is needed, define it as a separate model/metric. Confirm the intended meaning with the user.

Files changed:

  • getnao/jaffle_shop_duckdb:models/schema.yml (from repos/dbt/models/schema.yml)

Review carefully — this change was drafted automatically from real usage signals.

…was the subject of a manual edit request

A user opened a chat to change the dbt orders description, stating it "should be 'orders paid last month'". The current schema.yml description ("This table has basic information about orders, as well as some derived facts based on payments") is vague and does not state the grain, key, or that amount is already aggregated. The orders model is NOT filtered to last month, so "orders paid last month" would be factually wrong — but the recurring desire to edit this description signals the metadata is unclear and should be made precise.

Co-authored-by: nao <naoagent@getnao.io>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant