Skip to content
Discussion options

You must be logged in to vote

A DELETE operation in ducklake involves creating a delete file on object storage that specifies which rows of the data file is to be ignored. So the query for updating the metadata is done by updating the ducklake_delete_file table to point to the new delete file, updating the ducklake_table_stats and ducklake_table_column_stats if there are any changes to the table statistics, and updating the ducklake_snapshot and ducklake_snapshot_changes tables to create the new snapshot information.

UPDATE operations in lakehouse systems dont exist as the data files are immutable by design. So an UPDATE operation in ducklake is actually implemented as a DELETE + INSERT operation where you delete the …

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by markandpathak
Comment options

You must be logged in to vote
2 replies
@gahtan-syarif
Comment options

@gahtan-syarif
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants