indygreg / indygreg/python-zstandard
Files with multiple frames have frames skipped?
Nobody has claimed this yet.
- Dominant language
- C
- Stars
- 642
- Forks
- 116
- Avg merge
- 1d 14h
- Merged PRs (30d)
- 5
Description
I've ran into a use case for files that with multiple frames. It looks like only the first frame is read.
The zstd command line tool has no problems decompressing the file, but when I use a read_to_iter or ZstdDecompressor.decompress call only the first frame is returned.
I've uploaded an example here where the two_frame.zst file has one frame per line.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the report with the linked two_frame.zst example, comparing read_to_iter and ZstdDecompressor.decompress with the zstd command-line behavior. Trace how these entry points process multiple frames; done means both frames are returned rather than only the first.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100