Skip to content

fix(ontology): preserve datatypes through spec round-trips - #622

Closed
RyutoYoda wants to merge 1 commit into
apache:mainfrom
RyutoYoda:codex/ontology-datatype-roundtrip
Closed

RyutoYoda wants to merge 1 commit into
apache:mainfrom
RyutoYoda:codex/ontology-datatype-roundtrip

Conversation

@RyutoYoda

@RyutoYoda RyutoYoda commented Oct 21, 2026 •

Copy link
Copy Markdown
Contributor

Summary

DatasetField.datatype and Metric.datatype were accepted by the ontology spec models but dropped when converting to the runtime model and back. This preserves both values through the runtime model and both conversion directions without changing the core spec or adding dependencies.

The regression test uses the Flights OSSIE document and verifies a field datatype and a metric datatype through a full parse, serialize, and reparse round-trip.

Related Issues

Related to #454, which added datatype to the ontology spec models. This change preserves those fields through the runtime converter path.

Checklist

Sections this change does not touch (Specification, Ontology vocabulary, Validation, Documentation, Examples) are omitted. No new converter is added, so the labeler item does not apply.

Converters

  • Existing converter logic in converters/ontology/ preserves field and metric datatypes in both directions
  • Regression coverage is under converters/ontology/tests/

Tests

  • Full ontology converter suite passes locally: 171 passed, no skipped tests
  • End-to-end OSSIE parse → runtime model → serialize → reparse preserves field String and metric Integer
  • Generated semantic model passes core schema validation with SQL validation enabled
  • git diff --check passes

Compliance

  • No new source files; existing ASF headers are retained
  • No dependencies added
  • No third-party source code vendored

GitHub Actions

GitHub reports action_required for the converter CI and other pull-request workflows; those jobs have not run. The verification above was completed locally.

@jbonofre

Copy link
Copy Markdown
Member

@RyutoYoda as shared on the dev mailing list, the converters have moved to a dedicated repository: https://github.com/apache/ossie-converters

Can you please create this PR on the new repo? Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants