You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@iceberg.apache.org by "ajantha-bhat (via GitHub)" <gi...@apache.org> on 2025/05/30 11:30:57 UTC

[PR] Spec: Add DV information in overview [iceberg]

ajantha-bhat opened a new pull request, #13189:
URL: https://github.com/apache/iceberg/pull/13189

   (no comment)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org


Re: [PR] Spec: Add DV information in overview [iceberg]

Posted by "stevenzwu (via GitHub)" <gi...@apache.org>.
stevenzwu commented on code in PR #13189:
URL: https://github.com/apache/iceberg/pull/13189#discussion_r2183702710


##########
format/spec.md:
##########
@@ -101,10 +101,10 @@ Inheriting the sequence number from manifest metadata allows writing a new manif
 
 Row-level deletes are stored in delete files.
 
-There are two ways to encode a row-level delete:
-
-* [_Position deletes_](#position-delete-files) mark a row deleted by data file path and the row position in the data file

Review Comment:
   I probably won't agree with changing it to `three` ways here.
   
   I do agree the problem the link to `position delete files`. We probably should remove the `files` from the linked section titles. In the `position deletes` section, the two types of file format can be described there.
   
   e.g. 
   ```
   [_Position deletes_](#position-deletes) 
   ```



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org


Re: [PR] Spec: Add DV information in overview [iceberg]

Posted by "stevenzwu (via GitHub)" <gi...@apache.org>.
stevenzwu commented on PR #13189:
URL: https://github.com/apache/iceberg/pull/13189#issuecomment-3050427938

   Do we need a dev ML vote for this one?
   
   It is not a spec change. just clarifying or fixing the wording. 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org


Re: [PR] Spec: Add DV information in overview [iceberg]

Posted by "stevenzwu (via GitHub)" <gi...@apache.org>.
stevenzwu commented on code in PR #13189:
URL: https://github.com/apache/iceberg/pull/13189#discussion_r2191086264


##########
format/spec.md:
##########
@@ -101,10 +101,10 @@ Inheriting the sequence number from manifest metadata allows writing a new manif
 
 Row-level deletes are stored in delete files.
 
-There are two ways to encode a row-level delete:
-
-* [_Position deletes_](#position-delete-files) mark a row deleted by data file path and the row position in the data file

Review Comment:
   Ah. I see your point now. The `### Delete Formats` section already mentioned three types of row-level deletes, which is inaccurate. You are trying to match that here.
   ```
   There are three types of row-level deletes:
   ```
   
   In my mind. There are *two* types of row-level deletes (position and equality). But there are *three* types of delete file format. The above spec can probably be changed from `row-level deletes` to `delete file formats`.
   
   The section title of `Delete Formats` is also not completely accurate, as it also contains a child section of `Delete file stats` 
   
   Without changing the `Delete Formats` section (except for fix the wording above) if we clarify this overview as following
   ```
   There are two types of row-level deletes.
   * _Position deletes_ mark a row deleted by data file path and the row position in the data file. Position deletes are encoded in a  [_position delete file_](#position-delete-files) (V2 or below) or  [_delete vector_](#deletion-vectors) (V3 or above)
   * _Equality deletes_ mark a row deleted by one or more column values, like `id = 5`. Equality deletes are encoded in [_equality delete file_](#equality-delete-files).
   
   Like data files, delete files are tracked by partition. In general, a delete file must be applied to older data files with the same partition; see [Scan Planning](#scan-planning) for details. Column metrics can be used to determine whether a delete file's rows overlap the contents of a data file or a scan range.
   ```
   



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org


Re: [PR] Spec: Add DV information in overview [iceberg]

Posted by "stevenzwu (via GitHub)" <gi...@apache.org>.
stevenzwu commented on code in PR #13189:
URL: https://github.com/apache/iceberg/pull/13189#discussion_r2191089719


##########
format/spec.md:
##########
@@ -101,10 +101,10 @@ Inheriting the sequence number from manifest metadata allows writing a new manif
 
 Row-level deletes are stored in delete files.
 
-There are two ways to encode a row-level delete:
-
-* [_Position deletes_](#position-delete-files) mark a row deleted by data file path and the row position in the data file

Review Comment:
   earlier, I was thinking about changing the `Delete Format` section. 
   ```
   ### Row-level Deletes
   #### Position Deletes
   Deletion Vectors -- moved under new section Position Deletes
   Position Delete Files -- moved under new section Position Deletes
   #### Equality Delete
   #### Delete File Stats
   ```
   
   But we can go with the approach in this PR by just clarifying the overview section. Also add an one-sentence fix in the delete format section
   ```
   There are three types of row-level deletes:
   -->
   There are three file formats for encoding row-level delete:
   ```



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org


Re: [PR] Spec: Add DV information in overview [iceberg]

Posted by "ajantha-bhat (via GitHub)" <gi...@apache.org>.
ajantha-bhat commented on PR #13189:
URL: https://github.com/apache/iceberg/pull/13189#issuecomment-2922149448

   @rdblue, @aokolnychyi, @RussellSpitzer: Let me know what you guys think on this. While scanning the spec for v3 completion, I felt this section needs an update.    


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org


Re: [PR] Spec: Add DV information in overview [iceberg]

Posted by "stevenzwu (via GitHub)" <gi...@apache.org>.
stevenzwu commented on PR #13189:
URL: https://github.com/apache/iceberg/pull/13189#issuecomment-3050783474

   agree that voting is not needed in this case. let me merge this


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org


Re: [PR] Spec: Add DV information in overview [iceberg]

Posted by "ajantha-bhat (via GitHub)" <gi...@apache.org>.
ajantha-bhat commented on PR #13189:
URL: https://github.com/apache/iceberg/pull/13189#issuecomment-3050686236

   I don't think we need a discussion for this trivial change. IMO voting is to notify many people about new things added or change in behavior. This is kind of typo. 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org


Re: [PR] Spec: Add DV information in overview [iceberg]

Posted by "stevenzwu (via GitHub)" <gi...@apache.org>.
stevenzwu merged PR #13189:
URL: https://github.com/apache/iceberg/pull/13189


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org


Re: [PR] Spec: Add DV information in overview [iceberg]

Posted by "ajantha-bhat (via GitHub)" <gi...@apache.org>.
ajantha-bhat commented on code in PR #13189:
URL: https://github.com/apache/iceberg/pull/13189#discussion_r2192638040


##########
format/spec.md:
##########
@@ -101,10 +101,10 @@ Inheriting the sequence number from manifest metadata allows writing a new manif
 
 Row-level deletes are stored in delete files.
 
-There are two ways to encode a row-level delete:
-
-* [_Position deletes_](#position-delete-files) mark a row deleted by data file path and the row position in the data file

Review Comment:
   updated. 



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org


Re: [PR] Spec: Add DV information in overview [iceberg]

Posted by "ajantha-bhat (via GitHub)" <gi...@apache.org>.
ajantha-bhat commented on PR #13189:
URL: https://github.com/apache/iceberg/pull/13189#issuecomment-3049126924

   Also cc @nastra 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org


Re: [PR] Spec: Add DV information in overview [iceberg]

Posted by "stevenzwu (via GitHub)" <gi...@apache.org>.
stevenzwu commented on code in PR #13189:
URL: https://github.com/apache/iceberg/pull/13189#discussion_r2191089719


##########
format/spec.md:
##########
@@ -101,10 +101,10 @@ Inheriting the sequence number from manifest metadata allows writing a new manif
 
 Row-level deletes are stored in delete files.
 
-There are two ways to encode a row-level delete:
-
-* [_Position deletes_](#position-delete-files) mark a row deleted by data file path and the row position in the data file

Review Comment:
   earlier, I was thinking about changing the `Delete Format` section. 
   ```
   ### Row-level Deletes
   #### Position Deletes
   Deletion Vectors -- moved under new section Position Deletes
   Position Delete Files -- moved under new section Position Deletes
   #### Equality Delete
   #### Delete File Stats
   ```
   
   But we can go with the approach of just clarifying the overview section with an one-sentence fix in the delete format section
   ```
   There are three types of row-level deletes:
   -->
   There are three file formats for encoding row-level delete:
   ```



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org


Re: [PR] Spec: Add DV information in overview [iceberg]

Posted by "stevenzwu (via GitHub)" <gi...@apache.org>.
stevenzwu commented on code in PR #13189:
URL: https://github.com/apache/iceberg/pull/13189#discussion_r2183702710


##########
format/spec.md:
##########
@@ -101,10 +101,10 @@ Inheriting the sequence number from manifest metadata allows writing a new manif
 
 Row-level deletes are stored in delete files.
 
-There are two ways to encode a row-level delete:
-
-* [_Position deletes_](#position-delete-files) mark a row deleted by data file path and the row position in the data file

Review Comment:
   I probably won't agree with changing it to `three` ways here.
   
   I do agree the problem the link to `position delete files`. We probably should remove the `files` from the linked section titles. In the `position deletes` section, the two types of file format can be described there.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org


Re: [PR] Spec: Add DV information in overview [iceberg]

Posted by "ajantha-bhat (via GitHub)" <gi...@apache.org>.
ajantha-bhat commented on code in PR #13189:
URL: https://github.com/apache/iceberg/pull/13189#discussion_r2192628714


##########
format/spec.md:
##########
@@ -101,10 +101,10 @@ Inheriting the sequence number from manifest metadata allows writing a new manif
 
 Row-level deletes are stored in delete files.
 
-There are two ways to encode a row-level delete:
-
-* [_Position deletes_](#position-delete-files) mark a row deleted by data file path and the row position in the data file

Review Comment:
   SGTM. 
   
   Minor changes in your suggestion.
   > Position deletes are encoded in a  [_position delete file_](#position-delete-files) (V2 or below)
   
   It should be just V2, because v1 doesn't support it.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org


Re: [PR] Spec: Add DV information in overview [iceberg]

Posted by "ajantha-bhat (via GitHub)" <gi...@apache.org>.
ajantha-bhat commented on code in PR #13189:
URL: https://github.com/apache/iceberg/pull/13189#discussion_r2115760706


##########
format/spec.md:
##########
@@ -101,10 +101,10 @@ Inheriting the sequence number from manifest metadata allows writing a new manif
 
 Row-level deletes are stored in delete files.
 
-There are two ways to encode a row-level delete:
-
-* [_Position deletes_](#position-delete-files) mark a row deleted by data file path and the row position in the data file

Review Comment:
   I know that Position deletes can be "delete vectors" or "position delete files". But this points to "position delete files". So, it is ambiguous. Hence, added a `files` suffix. 
   
   Also added a missing info about DV. 



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org


Re: [PR] Spec: Add DV information in overview [iceberg]

Posted by "nastra (via GitHub)" <gi...@apache.org>.
nastra commented on code in PR #13189:
URL: https://github.com/apache/iceberg/pull/13189#discussion_r2192709299


##########
format/spec.md:
##########
@@ -1106,7 +1105,7 @@ Notes:
 
 This section details how to encode row-level deletes in Iceberg delete files. Row-level deletes are added by v2 and are not supported in v1. Deletion vectors are added in v3 and are not supported in v2 or earlier. Position delete files must not be added to v3 tables, but existing position delete files are valid.
 
-There are three types of row-level deletes:
+There are three supported file formats for encoding row-level deletes:

Review Comment:
   Maybe just `There are different formats for encoding row-level deletes`



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org


Re: [PR] Spec: Add DV information in overview [iceberg]

Posted by "ajantha-bhat (via GitHub)" <gi...@apache.org>.
ajantha-bhat commented on code in PR #13189:
URL: https://github.com/apache/iceberg/pull/13189#discussion_r2189940895


##########
format/spec.md:
##########
@@ -101,10 +101,10 @@ Inheriting the sequence number from manifest metadata allows writing a new manif
 
 Row-level deletes are stored in delete files.
 
-There are two ways to encode a row-level delete:
-
-* [_Position deletes_](#position-delete-files) mark a row deleted by data file path and the row position in the data file

Review Comment:
   > I probably won't agree with changing it to three ways here.
   
   https://iceberg.apache.org/spec/#delete-formats
   The spec itself mention in down that "There are three types of row-level deletes:". 
   
   I agree that there are two kinds of deletes, position deletes and equality deletes. But encoding is really different. So, maybe ok to mention `three` here? If we are ok with three, current changes are good?
   
   
   > I do agree the problem the link to position delete files. We probably should remove the files from the linked section titles. In the position deletes section, the two types of file format can be described there.
   
   currently it is 
   
   ```
   ### Delete Formats
   #### Deletion Vectors
   #### Position Delete Files
   #### Equality Delete Files
   ``` 
   
   Are you suggesting to change?
   
   ```
   ### Delete Formats
   #### Position Deletes
   ##### Deletion Vectors -- moved under new section Position Deletes
   ##### Position Delete Files -- moved under new section Position Deletes
   #### Equality Delete Files
   ``` 



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org


Re: [PR] Spec: Add DV information in overview [iceberg]

Posted by "ajantha-bhat (via GitHub)" <gi...@apache.org>.
ajantha-bhat commented on code in PR #13189:
URL: https://github.com/apache/iceberg/pull/13189#discussion_r2192790327


##########
format/spec.md:
##########
@@ -1106,7 +1105,7 @@ Notes:
 
 This section details how to encode row-level deletes in Iceberg delete files. Row-level deletes are added by v2 and are not supported in v1. Deletion vectors are added in v3 and are not supported in v2 or earlier. Position delete files must not be added to v3 tables, but existing position delete files are valid.
 
-There are three types of row-level deletes:
+There are three supported file formats for encoding row-level deletes:

Review Comment:
   udpated



##########
format/spec.md:
##########
@@ -1106,7 +1105,7 @@ Notes:
 
 This section details how to encode row-level deletes in Iceberg delete files. Row-level deletes are added by v2 and are not supported in v1. Deletion vectors are added in v3 and are not supported in v2 or earlier. Position delete files must not be added to v3 tables, but existing position delete files are valid.
 
-There are three types of row-level deletes:
+There are three supported file formats for encoding row-level deletes:

Review Comment:
   updated



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org


Re: [PR] Spec: Add DV information in overview [iceberg]

Posted by "nastra (via GitHub)" <gi...@apache.org>.
nastra commented on code in PR #13189:
URL: https://github.com/apache/iceberg/pull/13189#discussion_r2192697425


##########
format/spec.md:
##########
@@ -101,10 +101,9 @@ Inheriting the sequence number from manifest metadata allows writing a new manif
 
 Row-level deletes are stored in delete files.
 
-There are two ways to encode a row-level delete:
-
-* [_Position deletes_](#position-delete-files) mark a row deleted by data file path and the row position in the data file
-* [_Equality deletes_](#equality-delete-files) mark a row deleted by one or more column values, like `id = 5`
+There are two types of row-level deletes:
+* _Position deletes_ mark a row deleted by data file path and the row position in the data file. Position deletes are encoded in a [_position delete file_](#position-delete-files) (V2) or [_delete vector_](#deletion-vectors) (V3 or above).

Review Comment:
   ```suggestion
   * _Position deletes_ mark a row deleted by data file path and the row position in the data file. Position deletes are encoded in a [_position delete file_](#position-delete-files) (V2) or [_deletion vector_](#deletion-vectors) (V3 or above).
   ```



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org


Re: [PR] Spec: Add DV information in overview [iceberg]

Posted by "stevenzwu (via GitHub)" <gi...@apache.org>.
stevenzwu commented on PR #13189:
URL: https://github.com/apache/iceberg/pull/13189#issuecomment-3050787228

   thanks @ajantha-bhat for the fix and @nastra for the review


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org