Skip to content

Add unit metadata to columns#2149

Draft
shangyian wants to merge 6 commits into
DataJunction:mainfrom
shangyian:units
Draft

Add unit metadata to columns#2149
shangyian wants to merge 6 commits into
DataJunction:mainfrom
shangyian:units

Conversation

@shangyian
Copy link
Copy Markdown
Collaborator

@shangyian shangyian commented May 19, 2026

Summary

This change introduces a structured, column-level unit field as the long-term home for unit metadata in DJ. Previously unit lived only on metricmetadata as a flat enum (MetricUnit) and only applied to metric output values. This PR adds the new field to columns, including on all associated column objects like Column (ORM), ColumnSpec (YAML), ColumnOutput (API). The legacy metricmetadata.unit path continues to work unchanged; subsequent PRs will wire it through.

Test Plan

Deployment Plan

@netlify
Copy link
Copy Markdown

netlify Bot commented May 19, 2026

Deploy Preview for thriving-cassata-78ae72 canceled.

Name Link
🔨 Latest commit 7fb2b03
🔍 Latest deploy log https://app.netlify.com/projects/thriving-cassata-78ae72/deploys/6a0ce355542c7b0008ccda61

@shangyian shangyian changed the title Add Units to Columns Add unit metadata to the column level May 19, 2026
@shangyian shangyian changed the title Add unit metadata to the column level Add unit metadata to columns May 19, 2026
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