Skip to content

Inconsistent JSON-LD rendering of xsd:decimal values: empty @type from arena decode vs plain string from flake path #1329

Closed

Description

@bplatz

Problem

The same xsd:decimal value renders differently in query results depending on which internal path served it:

  • Arena-decoded (binary index / NumBig): {"@value": "19.99", "@type": ""} — note the empty @type
  • Raw-flake-served (novelty raw-merge path): plain "19.99" string

Observed while writing the overlay differential test it_join_batched_overlay.rs::batched_join_decimal_novelty, where the same query returns mixed forms when part of the data is in the index and part in novelty. The test works around it by comparing extracted @values instead of exact JSON (see the decimal_values helper and the comment marking this as a pre-existing formatter discrepancy).

Repro shape: index a typed decimal, commit another via novelty, SELECT both — the indexed one comes back as an object with an empty @type, the novelty one as a bare string.

Expected

One canonical rendering for xsd:decimal regardless of serving path — and in no case an empty @type string, which is malformed JSON-LD.

Likely area: the formatter's handling of NUM_BIG_OVERFLOW-decoded values fails to map the o_type back to the xsd:decimal datatype IRI (hence @type: ""), while the flake path drops the type annotation entirely.

Activity

  1. added
    bug
    on Jun 12, 2026
  2. added 2 commits that reference this issue on Jun 27, 2026
  3. added a commit that references this issue on Sep 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions