Skip to content

Add count_distinct_partner_id metric to partner_id column in dbt_orders - #132

Open
lightdash[bot] wants to merge 1 commit into
mainfrom
lightdash-ai-writeback/dc7ef84a-181c-4f89-a2b0-c335c19be2d2
Open

lightdash[bot] wants to merge 1 commit into
mainfrom
lightdash-ai-writeback/dc7ef84a-181c-4f89-a2b0-c335c19be2d2

Conversation

@lightdash

@lightdash lightdash Bot commented Aug 11, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Added a count_distinct_partner_id metric under partner_id in models/dbt_orders.yml
  • Metric is of type count_distinct, labelled "Number of Partners", with spotlight visibility set to show and categories verified and sales
  • Mirrors the pattern of the existing count_distinct_user_id metric on the user_id column

Test plan

  • Confirm the new metric appears in Lightdash under the Orders explore
  • Verify it returns the correct count of unique partner IDs
  • Check spotlight visibility and category tags are applied correctly

## Summary

- Added a `count_distinct_partner_id` metric under `partner_id` in `models/dbt_orders.yml`
- Metric is of type `count_distinct`, labelled "Number of Partners", with spotlight visibility set to `show` and categories `verified` and `sales`
- Mirrors the pattern of the existing `count_distinct_user_id` metric on the `user_id` column

## Test plan

- [ ] Confirm the new metric appears in Lightdash under the Orders explore
- [ ] Verify it returns the correct count of unique partner IDs
- [ ] Check spotlight visibility and category tags are applied correctly

Co-authored-by: lightdash[bot] <183517231+lightdash[bot]@users.noreply.github.com>
Co-authored-by: Jake Peterson <jake@lightdash.com>
@lightdash

lightdash Bot commented Aug 11, 2026

Copy link
Copy Markdown
Contributor Author

🔍 Lightdash preview environment ready: https://analytics.lightdash.cloud/projects/86fc9f4b-0062-49be-817b-3817f8c5875b/home

Compiled from branch lightdash-ai-writeback/dc7ef84a-181c-4f89-a2b0-c335c19be2d2. Explores may take a minute to appear while the project compiles.

@github-actions

Copy link
Copy Markdown

@github-actions

Copy link
Copy Markdown

Lightdash Validation Results

Validating default project 8a223608-a1e4-426e-adcd-0598ea72b9f8

/opt/hostedtoolcache/Python/3.10.20/x64/lib/python3.10/site-packages/google/api_core/_python_version_support.py:254: FutureWarning: You are using a Python version (3.10.20) which Google will stop supporting in new releases of google.api_core once it reaches its end of life (2026-10-04). Please upgrade to the latest Python version, or at least Python 3.11, to continue receiving updates for google.api_core past that date.
  warnings.warn(message, FutureWarning)
/opt/hostedtoolcache/Python/3.10.20/x64/lib/python3.10/site-packages/google/api_core/_python_version_support.py:254: FutureWarning: You are using a Python version (3.10.20) which Google will stop supporting in new releases of google.cloud.dataproc_v1 once it reaches its end of life (2026-10-04). Please upgrade to the latest Python version, or at least Python 3.11, to continue receiving updates for google.cloud.dataproc_v1 past that date.
  warnings.warn(message, FutureWarning)

- SUCCESS> dbt_users 
- SUCCESS> dbt_support_requests 
- SUCCESS> dbt_baskets 
- SUCCESS> dbt_orders 
- SUCCESS> dbt_orders_no_preagg 

Compiled 5 explores, SUCCESS=5 ERRORS=0
-   Waiting for validation to finish
✔   Validation finished without errors in 18s (5 chart configuration warnings hidden, use --show-chart-configuration-warnings to show)
Done 🕶

This validation check is informational and does not block merging.

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.

0 participants