Skip to content

jsonio.valReader: use io.ReadFull to read buffer - #7194

Merged
mattnibs merged 1 commit into
mainfrom
jsonio-valreader-full
Aug 14, 2026
Merged

jsonio.valReader: use io.ReadFull to read buffer#7194
mattnibs merged 1 commit into
mainfrom
jsonio-valreader-full

Conversation

@mattnibs

Copy link
Copy Markdown
Collaborator

This commit changes the behavior of the fill() method in valReader to use use io.ReadFull to fill the buffer. The code was mistakenly assuming calls to Read would fill the passed buffer unless EOF was reached.

This commit also resolves a panic that occurs when no values are read from a batch by returning nil if the vector.BytesTable is empty.

Closes #7163

@mattnibs
mattnibs requested a review from a team August 10, 2026 21:12
This commit changes the behavior of the fill() method in valReader to
use use io.ReadFull to fill the buffer. The code was mistakenly assuming
calls to Read would fill the passed buffer unless EOF was reached.

This commit also resolves a panic that occurs when no values are read
from a batch by returning nil if the vector.BytesTable is empty.

Closes #7163
@mattnibs
mattnibs force-pushed the jsonio-valreader-full branch from b6422bf to 112762b Compare August 14, 2026 21:11
@mattnibs
mattnibs merged commit 13dca79 into main Aug 14, 2026
2 checks passed
@mattnibs
mattnibs deleted the jsonio-valreader-full branch August 14, 2026 21:14
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.

fjson rejects GZIP input larger than a certain size

2 participants