smaheshwar-pltr commented on code in PR #4524:
URL: https://github.com/apache/iceberg-python/pull/4524#discussion_r4773729962


##########
mkdocs/docs/api.md:
##########
@@ -2341,6 +2341,28 @@ DataFrame()
 +---+---+
 ```
 
+## Incremental append scan
+
+`incremental_append_scan()` reads only the rows appended to a table between 
two snapshots:
+
+```python
+tbl.incremental_append_scan(
+    from_snapshot_id_exclusive=from_snapshot_id,
+    to_snapshot_id_inclusive=to_snapshot_id,
+).to_arrow()
+```
+
+Both bounds are optional. Without a start, the scan reads from the beginning 
of the table's history, and without an end, up to the current snapshot. The 
start must be an earlier snapshot in the end snapshot's history, or a 
`ValueError` is raised.

Review Comment:
   > An expired snapshot works as long as it's the parent of a snapshot that's 
still there, which is worth mentioning for consumers resuming from a saved 
snapshot ID.
   
   #4206 is still open here, so this actually doesn't work if PyIceberg is the 
one that does expiration. I wouldn't want to provide a note like this when it's 
not supported, so perhaps we can wait for that fix to merge?



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to