-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
Document row level deletes for Iceberg #12061
Conversation
^^^^^^^^^^^^^^^^^^ | ||
|
||
Tables using v2 of the Iceberg specification support deletion of individual rows | ||
using the ``merge-on-read`` mode. In order to use this feature the ``format_version`` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
merge-on-read in monospace looks like we support deletes only if deletion mode is merge-on-read, while we ignore it
let's not use the merge-on-read in a code block. Let's say we create deletion files.
|
||
Tables using v2 of the Iceberg specification support deletion of individual rows | ||
using the ``merge-on-read`` mode. In order to use this feature the ``format_version`` | ||
table property must be set to ``2``. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- for new Tables, from Trino perspective, user doesn't need to set
format_version=2
, because it's the default - for existing tables, referring to
format_version
may be confusing because we don't show it yet (Show Iceberg table version in SHOW CREATE TABLE #11980) and don't allow changing it (tbd)
let's just say the table must be in "v2" iceberg spec version
Currently, the Iceberg connector only supports deletion by partition. | ||
This SQL below will fail because the ``WHERE`` clause selects only some of the rows | ||
in the partition:: | ||
Both v1 and v2 tables will perform a partition delete if the ``WHERE`` clause |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it clear that v1 and v2 refer to Iceberg spec versions?
7441a4e
to
23f580c
Compare
Updated, thanks |
Description
Documentation for #11886
Documentation of a new feature