Repository navigation
Release v5.8.0: remove public EOF polling - #357
Merged
Merged
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #357 +/- ##
==========================================
+ Coverage 92.20% 92.24% +0.04%
==========================================
Files 64 64
Lines 4682 4709 +27
Branches 1432 1442 +10
==========================================
+ Hits 4317 4344 +27
+ Misses 107 106 -1
- Partials 258 259 +1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
CSVReader::eof()and PythonReader.eof().has_next_row()and checkedtry_has_next_row(CSVError&)for occasional, non-consuming logical-row lookahead. The low-level PythonReaderexposeshas_next_row()as well.read_row()on its existing hot path: lookahead uses a synchronized copy of the queue front and leaves the first returnable row queued.bool; lookahead still reaches EOF only after the scheduler joins.Compatibility
This intentionally removes a non-keystone polling API. C++ callers using
reader.eof()will fail to compile, and Python callers usingReader.eof()will receiveAttributeError.Normal consumers should continue using iteration or the return value of
read_row()/try_read_row(). Callers that occasionally need to check without consuming can usehas_next_row()/try_has_next_row(); the check may block while parsing and may skip physical records excluded by the active variable-column policy. The checked forms useCSVErrorto distinguish ordinary exhaustion from failure.Validation
CSV_ENABLE_THREADS=OFFbuild and full test suite: 4/4 passed.CSV_ENABLE_EXCEPTIONS=OFFbuild and full test suite: 4/4 passed.This PR prepares the release only. It should not be merged automatically.