Skip to content

Adding functionality to count updates and inserts when executing the MERGE#85

Merged
gitfvb merged 4 commits intomainfrom
dev
Mar 30, 2026
Merged

Adding functionality to count updates and inserts when executing the MERGE#85
gitfvb merged 4 commits intomainfrom
dev

Conversation

@gitfvb
Copy link
Copy Markdown
Contributor

@gitfvb gitfvb commented Mar 30, 2026

No description provided.

claude and others added 4 commits March 30, 2026 17:03
Add pre-merge row counting in Invoke-DuckDBUpsert using EXISTS checks
against the staging table to distinguish inserts (no matching PK) from
updates (matching PK found). Counts are accumulated across batches in
Add-RowsToDuckDB, which now outputs a PSCustomObject with RowsInserted,
RowsUpdated, RowsTotal, and TableName properties.

https://claude.ai/code/session_01FPJ1v9m8XUHqT8GEUAX4Ey
Add nine new tests in the Add-RowsToDuckDB describe block covering the
result object introduced by the insert/update tracking change: property
presence, TableName value, all-insert plain INSERT, first-load UPSERT,
all-updates UPSERT, mixed insert+update split, multi-batch insert and
update accumulation, and composite (multi-column) PK counting.

https://claude.ai/code/session_01FPJ1v9m8XUHqT8GEUAX4Ey
…-bbLVA

Track insert and update counts separately in Add-RowsToDuckDB
@gitfvb gitfvb self-assigned this Mar 30, 2026
@gitfvb gitfvb changed the title Dev Adding functionality to count updates and inserts when executing the MERGE Mar 30, 2026
@gitfvb gitfvb merged commit 599537e into main Mar 30, 2026
1 check passed
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