Skip to content

Return number of inserted rows when calling flush()#359

Merged
staticlibs merged 1 commit intoduckdb:mainfrom
arouel:flush-return-long
Sep 8, 2025
Merged

Return number of inserted rows when calling flush()#359
staticlibs merged 1 commit intoduckdb:mainfrom
arouel:flush-return-long

Conversation

@arouel
Copy link
Contributor

@arouel arouel commented Sep 1, 2025

Motivation

This enables the verification that the appender flushed the expected number of records, preventing silent data loss. By returning the count of flushed rows, the caller can assert that flush() processed exactly the number of rows they intended to write, catching potential issues in data pipelines early.

@staticlibs staticlibs merged commit 2a582a8 into duckdb:main Sep 8, 2025
9 checks passed
@staticlibs
Copy link
Collaborator

Thanks for the PR! It looks good to me, I've added a very minor fix on top of it and merged it in #364.

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