Skip to content

Conversation

@yokofly
Copy link
Collaborator

@yokofly yokofly commented Dec 10, 2025

fix #60

- Add rotatePending flag to defer pipe rotation until next row write in CSV, JSON, JSONLines, and Parquet readers
- Implement pre-write rotation check to close current pipe before writing to new one
- Add pipeOpen state tracking to prevent double-closing pipes across all reader channels
- Replace immediate pipe rotation with deferred rotation pattern for cleaner state management
- Update CSV reader to mark rotation pending instead of executing immediately
- Update JSON reader to rotate pipe at start of next batch iteration
- Update JSONLines reader to rotate pipe at start of next batch iteration
- Update Parquet Arrow reader to defer rotation and track pipe state
- Update Parquet reader to defer rotation and track pipe state
- Improve error handling by ensuring pipes are only closed when open
- Clarify comments from "close the prior reader?" to "close the prior reader"
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.

additional empty chunk file

2 participants