rustyconover opened a new pull request, #404: URL: https://github.com/apache/arrow-js/pull/404
## Summary - Pass `length: data.length` in `setChildAt` to preserve the batch's row count when constructing Struct data - Pass `length: 0` explicitly in `_InternalEmptyPlaceholderRecordBatch` instead of relying on reduce-over-children fallback - Add tests for Struct `makeData` with empty children and `setChildAt` row count preservation Closes #403 ## Test plan - [x] `makeData` with empty children preserves explicit length - [x] `makeData` with empty children and no length defaults to 0 - [x] `setChildAt` preserves `numRows` after column replacement - [x] Full test suite passes (`yarn test -t src`) 🤖 Generated with [Claude Code](https://claude.com/claude-code) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
