Skip to content

Use equivalent nullable string array items for Datalab Fast - #167

Merged
xujustinj merged 1 commit into
mainfrom
xujustinj/datalab-fast-anyof
Nov 19, 2026
Merged

xujustinj merged 1 commit into
mainfrom
xujustinj/datalab-fast-anyof

Conversation

@xujustinj

Copy link
Copy Markdown

What changed

For Datalab Fast extraction, submit nullable string array elements as "items": {"anyOf": [{"type": "string"}, {"type": "null"}]} when the item schema uses "type": ["string", "null"]. Both forms allow blank table cells to be represented as JSON null. The adapter applies the rewrite to the outgoing Fast request and retains sibling constraints.

Why

Fast repeatedly returned no extraction for two Budget Appendix and five Census documents. With the equivalent schema, Fast completed both diagnostic cases. Budget Appendix DOE scored 50.07 Value F1 and returned 88 null cells. The Census Statistical Abstract scored 20.00. Balanced and Accurate already completed all seven using their original schemas.

This gives Fast a fair comparison on the same allowed values as every other pipeline.

Verification

  • Reproduced the failure in the SDK request test before the fix. Verified the outgoing payload for Fast, Balanced, Accurate, Turbo, and a Balanced extraction with Fast parsing.
  • Checked all 370 vanilla schemas. Exactly seven change, each at one item type. Both diagnostic payloads match the successful submissions.
  • Passed Ruff lint and formatting checks.
  • Passed all 1,551 local tests with runner dependencies installed. The seven report JavaScript checks passed on Node 22.

@xujustinj
xujustinj merged commit 7cba09b into main Nov 19, 2026
3 checks passed
@xujustinj
xujustinj deleted the xujustinj/datalab-fast-anyof branch November 19, 2026 22:20
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