Skip to content

Update table stats for compaction rewrites#1

Closed
jdctinuiti wants to merge 1 commit into
drop-data-files-procedurefrom
compaction-table-stats
Closed

Update table stats for compaction rewrites#1
jdctinuiti wants to merge 1 commit into
drop-data-files-procedurefrom
compaction-table-stats

Conversation

@jdctinuiti

Copy link
Copy Markdown
Owner

Stacked on duckdb#1172 / jdctinuiti/drop-data-files-procedure.\n\nThis updates compaction commits to adjust ducklake_table_stats.record_count and file_size_bytes for both ducklake_rewrite_data_files and ducklake_merge_adjacent_files. The change computes removed/added data-file deltas and applies them through the existing global table-stats update path, preserving next_row_id and existing column stats.\n\nAdds a focused SQL regression covering rewrite-delete with output, merge-adjacent, inlined-file-delete rewrite, and zero-output rewrite after flushing fully-deleted inlined data.\n\nLocal build/test intentionally skipped; CI will run on jdctinuiti/ducklake.

@jdctinuiti

Copy link
Copy Markdown
Owner Author

Closing this fork-local PR; the real upstream PR should be opened in duckdb/ducklake with jdctinuiti:compaction-table-stats as the head branch.

@jdctinuiti jdctinuiti closed this Jun 3, 2026
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.

1 participant