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

dont panic batch on send after invalid append #830

Merged
merged 2 commits into from
Nov 24, 2022
Merged

dont panic batch on send after invalid append #830

merged 2 commits into from
Nov 24, 2022

Conversation

gingerwizard
Copy link
Collaborator

Closes issue_798

Failed Append followed by Send currently causes panic.

This fixes so an Append of invalid data invalidates the batch and Send returns an error.

Better would be that the Append of invalid data fails but the batch is still valid - Send will then succeed. This is trickier as columns are added one by one. If the error occurs due to a column other than the first, we have to undo the previous changes. I suspect this isn't trivial as it will mean reversing the changes to the buffer. We could check to see all values are valid beforehand - this will incur an overhead though. Will raise an issue for this as it needs benchmarking.

@gingerwizard gingerwizard self-assigned this Nov 23, 2022
@gingerwizard gingerwizard merged commit dc3f7b5 into main Nov 24, 2022
@gingerwizard gingerwizard deleted the issue_798 branch December 5, 2022 09:54
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.

Flush batch cause panic
1 participant