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

Fix #1251: readFile should be robust to empty ranges #1252

Merged
merged 1 commit into from
Apr 19, 2023

Conversation

carlopi
Copy link
Collaborator

@carlopi carlopi commented Apr 19, 2023

In case where bytes is 0, read will potentially issue a ranged request on (location, location-1), and this will end up in a failure.
Returning 0 means that 0 bytes have been read, so it's sort of consistent.

I haven't got a local repro (yet), then there is to investigate also why readFile on an empty range is issued.

@Mytherin Mytherin merged commit 4a99571 into duckdb:master Apr 19, 2023
@Mytherin
Copy link
Contributor

Thanks! LGTM

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.

2 participants