Repository navigation
Fix CSV array output for independent sequence elements - #5978
Merged
knolleary merged 1 commit intoOct 14, 2026
Merged
Conversation
Distinguish array/object sequence metadata from split CSV rows, preserve parent parts for complete payloads, and retain newline-terminated legacy rows during aggregation. Generated-by: OpenCode / OpenAI GPT-6.1 Sol
|
|
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.
Proposed changes
Fixes #4776.
When configured to output an array, the CSV node treats any
msg.partsas split CSV rows. An array/object sequence can instead contain separate complete CSV files. A single-row file is then held until the parent sequence finishes, or is emitted with an empty payload in legacy mode when it ends with a newline.partsmetadata.partsusing the existing CSV-row aggregation behavior.Validation
Windows, Node.js v22.23.3:
node node_modules/mocha/bin/mocha.js test/unit/_spec.js test/nodes/core/parsers/70-CSV_spec.js test/nodes/core/parsers/70-CSV-leading-empty_spec.js --reporter dot.npm test: build, dependency verification, and lint completed successfully, but the coverage/test phase exceeded the local 240-second command limit while running HTTP Request tests. The full suite is not claimed as passing.git diff --check: passes.Checklist
npm run testto verify the unit tests pass (attempted; full run timed out as described above)