Skip to content

[#14140] feat(core): Persist Semantic Model metric identities - #14141

Draft
mchades wants to merge 3 commits into
apache:mainfrom
mchades:codex/semantic-model-metric-identities
Draft

mchades wants to merge 3 commits into
apache:mainfrom
mchades:codex/semantic-model-metric-identities

Conversation

@mchades

@mchades mchades commented Oct 22, 2026

Copy link
Copy Markdown
Contributor

What changes were proposed in this pull request?

Add semantic_model_metric_meta and reconcile metric identities in the existing model transaction. Exact-name matches retain IDs; removed names are retired, and reintroduced names receive new IDs. Integrate model/parent deletion and GC across H2, MySQL, and PostgreSQL.

Why are the changes needed?

Provide the identity foundation for schema-level metric discovery described in #14038, under #14036.

Depends on #14139. This draft currently includes its commits and needs rebasing after it merges.

Fixes #14140.

Does this PR introduce any user-facing change?

No public API changes.

How was this patch tested?

313 tests passed: 13 unit tests and 100 tests on each of H2, MySQL, and PostgreSQL, covering identity rules, concurrent writes, rollback, parent cascades, GC, and SQL upgrades.

Ran coreUnitTest and the three core database test tasks with focused Semantic Model, parent lifecycle, garbage collector, and SQL script filters, using -PskipITs -PskipDockerTests=false. Spotless and git diff --check passed.

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.

[Subtask] Persist Semantic Model metric identities

1 participant