You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@iceberg.apache.org by "muniatl (via GitHub)" <gi...@apache.org> on 2025/01/13 06:57:32 UTC

[I] Getting all snapshots through table.inspect.snapshots() [iceberg-python]

muniatl opened a new issue, #1512:
URL: https://github.com/apache/iceberg-python/issues/1512

   ### Apache Iceberg version
   
   0.8.1 (latest release)
   
   ### Please describe the bug 🐞
   
   Whenever I try to get a list of snapshots, I always get the latest snapshot with the snapshots array containing only one item. Everytime I write, I do see the snapshot ID changing and I see new snap_* files created in my metadata folder.
   snapshots = table.inspect.snapshots()
           lensnap = len(snapshots).
       I have also checked using snapshots.num_rows and it always returns 1, while I see different snapshot IDs as writes happen. When I print snapshots, I get new committed_at: [[2025-01-12 12:18:37.633]]
   snapshot_id: [[8417529058189791147]] each time with parent id NULL.  Is this a known issue in 0.8.1?
   
   I want to be able to query and walk through all snapshots for an iceberg table created and managed through pyIceberg and perform time travel
   
   ### Willingness to contribute
   
   - [ ] I can contribute a fix for this bug independently
   - [ ] I would be willing to contribute a fix for this bug with guidance from the Iceberg community
   - [ ] I cannot contribute a fix for this bug at this time


-- 
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.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: [I] Getting all snapshots through table.inspect.snapshots() [iceberg-python]

Posted by "kevinjqliu (via GitHub)" <gi...@apache.org>.
kevinjqliu commented on issue #1512:
URL: https://github.com/apache/iceberg-python/issues/1512#issuecomment-2587742210

   I saw on Slack that this is using the Nessie catalog which has a known issue with returning only 1 snapshot https://github.com/apache/iceberg-python/issues/1105


-- 
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: [I] Getting all snapshots through table.inspect.snapshots() [iceberg-python]

Posted by "kevinjqliu (via GitHub)" <gi...@apache.org>.
kevinjqliu commented on issue #1512:
URL: https://github.com/apache/iceberg-python/issues/1512#issuecomment-2590718401

   x-posting from the other issue (https://github.com/apache/iceberg-python/issues/1105#issuecomment-2588075721)
   
   > To retain Nessie’s consistency and cross-branch/tag isolation guarantees, we have deliberately chosen to only return the state of a table or view as a single snapshot in Iceberg.
   
   https://projectnessie.org/guides/iceberg-rest/#time-travel-with-iceberg-rest
   
   
   


-- 
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: [I] Getting all snapshots through table.inspect.snapshots() [iceberg-python]

Posted by "kevinjqliu (via GitHub)" <gi...@apache.org>.
kevinjqliu closed issue #1512: Getting all snapshots through  table.inspect.snapshots() 
URL: https://github.com/apache/iceberg-python/issues/1512


-- 
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