Skip to content

Release v5.7.1: preserve lone empty CSV fields - #350

Merged
vincentlaucsb merged 2 commits into
vincentlaucsb:masterfrom
emincan2000:quote-lone-empty-field
Nov 1, 2026
Merged

vincentlaucsb merged 2 commits into
vincentlaucsb:masterfrom
emincan2000:quote-lone-empty-field

Conversation

@emincan2000

@emincan2000 emincan2000 commented Nov 1, 2026 •

Copy link
Copy Markdown
Contributor

Fix the loss of single empty fields when writing CSV and prepare the v5.7.1 patch release. A row containing one empty value now produces "" followed by a newline; zero-field rows still produce blank lines and multi-field rows retain their delimiters.

Checked CSVRow and DataFrame row/column writes now use a shared C++11-compatible field-range adapter and the same range serializer as ordinary containers. The adapter preserves edited-value lifetimes and the first access error in both exception modes. Field-access failures discard only the current buffered record, preserving earlier buffered records.

The release bumps the C++ header and Python package metadata to 5.7.1. The documentation sweep corrects direct checked-row writing before C++20, DataFrame copying claims and obsolete API names, empty-field and rollback semantics, and delimiter-detection guidance. Recursive Doxygen input discovery restores API pages for nested DataFrame headers.

Validation:

  • Writer, DataFrame, and explicit-error smoke suites with compiler exceptions enabled and disabled.
  • C++14 compatibility probes in both exception modes; strict C++11 execution remains covered by CI because the local Microsoft standard library requires C++14.
  • Regressions for empty-field quoting, buffering, first/middle/last field failures, invalid proxies, edited-cell lifetimes, owning access results, and immovable field results.
  • Doxygen build and Python Sphinx build with warnings treated as errors for Python docs. Doxygen retains existing undocumented-internal and obsolete-configuration warnings.
  • Independent subagent review of the implementation and documentation sweep, with findings addressed.

A row with one empty field came out as a blank line, which reads back as a
row with no fields.
@codecov

codecov Bot commented Nov 1, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 93.18182% with 3 lines in your changes missing coverage. Please review.
✅ Project coverage is 92.03%. Comparing base (efd7274) to head (10825f1).

Files with missing lines Patch % Lines
include/internal/checked_field_range.hpp 93.33% 0 Missing and 2 partials ⚠️
include/internal/csv_writer.hpp 92.85% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #350      +/-   ##
==========================================
- Coverage   92.06%   92.03%   -0.03%     
==========================================
  Files          63       64       +1     
  Lines        4627     4660      +33     
  Branches     1379     1383       +4     
==========================================
+ Hits         4260     4289      +29     
- Misses        107      108       +1     
- Partials      260      263       +3     
Flag Coverage Δ
cpp 91.95% <93.18%> (-0.04%) ⬇️
python 93.64% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@vincentlaucsb vincentlaucsb changed the title Quote a lone empty field in CSVWriter Release v5.7.1: preserve lone empty CSV fields Nov 1, 2026
@vincentlaucsb

Copy link
Copy Markdown
Owner

Thanks for your PR.

I found DataFrame/CSVRows were not covered by this change, which was my fault for having two different paths to write them and STL objects.

I consolidated the two write paths so they both use your fix.

@vincentlaucsb
vincentlaucsb merged commit 86f1cab into vincentlaucsb:master Nov 1, 2026
49 checks passed
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.

2 participants