Skip to content

Preserve heterogeneous document columns - #164

Merged
codeforester merged 1 commit into
mainfrom
bug/146-20260807-heterogeneous-document-columns
Aug 7, 2026
Merged

Preserve heterogeneous document columns#164
codeforester merged 1 commit into
mainfrom
bug/146-20260807-heterogeneous-document-columns

Conversation

@codeforester

Copy link
Copy Markdown
Contributor

Summary

  • Derive document columns from the first-seen union of all records.
  • Preserve later-only fields in CSV and TSV output.
  • Add regression coverage for heterogeneous report records.

Why

When columns was omitted, only the first record determined the output shape. Optional fields appearing in later records were silently dropped.

Validation

  • pytest -q tests/test_output.py -k 'render_document'
  • full pytest -q
  • strict mypy
  • Ruff lint
  • documentation validation
  • git diff --check

Closes #146

@codeforester
codeforester merged commit 70800ba into main Aug 7, 2026
80 checks passed
@codeforester
codeforester deleted the bug/146-20260807-heterogeneous-document-columns branch August 7, 2026 18:41
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.

render_document() silently drops data for heterogeneous records when columns aren't explicit

1 participant