Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Array writer output empty when no record is written #6613

Closed
gwik opened this issue Oct 22, 2024 · 1 comment · Fixed by #6614
Closed

Array writer output empty when no record is written #6613

gwik opened this issue Oct 22, 2024 · 1 comment · Fixed by #6614
Labels
arrow Changes to the arrow crate bug

Comments

@gwik
Copy link
Contributor

gwik commented Oct 22, 2024

Describe the bug

Array writer output is empty when no record is written.
Either when no batch or only empty batches are written the output is empty.
It's ok for line delimiter format but not for array format.

To Reproduce

let mut writer = ArrayWriter::new(vec![] as Vec<u8>);
writer.finish().unwrap();

Expected behavior

The buffer should contain be a valid json array [], instead it is empty.

@gwik gwik added the bug label Oct 22, 2024
@alamb alamb added the arrow Changes to the arrow crate label Nov 16, 2024
@alamb
Copy link
Contributor

alamb commented Nov 16, 2024

label_issue.py automatically added labels {'arrow'} from #6614

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
arrow Changes to the arrow crate bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants