Skip to content

Align value domain handling to the VTL 2.2 standard#864

Open
albertohernandez1995 wants to merge 8 commits into
mainfrom
cr-632
Open

Align value domain handling to the VTL 2.2 standard#864
albertohernandez1995 wants to merge 8 commits into
mainfrom
cr-632

Conversation

@albertohernandez1995

Copy link
Copy Markdown
Contributor

Summary

Aligns value-domain handling with the VTL 2.2 standard:

  • errorcode defaults to String (or the errorcode_vd value domain's type) and errorlevel to Integer (or errorlevel_vd), via a shared resolver used by both the pandas interpreter and the duckdb transpiler.
  • check_datapoint / check_hierarchy defined on a valuedomain signature now validate that the mapped components are defined on the signature's value domains (new error 1-1-10-11), skipping components without a declared value domain.
  • Component gains a value_domain field loaded from the data-structure subset key; viral-attribute propagation now resolves value-domain rules via it.

Closes #632.

Checklist

  • Code quality checks pass (ruff format, ruff check, mypy)
  • Tests pass (pytest) — 5125 passed, 11 skipped
  • Documentation updated (if applicable) — error codes doc is build-generated

…de_vd

type) and errorlevel defaults to Integer (or errorlevel_vd type) per VTL 2.2,
replacing per-literal type inference in the pandas validation operators.
Add an optional value_domain field to Component, serialized as the schema's
`subset` key only when set, and populate it in both loader branches. Viral
attribute propagation now resolves value-domain rules via the real field
instead of a getattr fallback.
@albertohernandez1995 albertohernandez1995 requested review from a team and javihern98 June 25, 2026 09:23
@albertohernandez1995 albertohernandez1995 linked an issue Jun 25, 2026 that may be closed by this pull request
@albertohernandez1995 albertohernandez1995 self-assigned this Jun 25, 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.

Align Value Domain handling to the standard

1 participant