You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@iceberg.apache.org by "doctormohamed (via GitHub)" <gi...@apache.org> on 2024/07/11 17:32:43 UTC

[I] How to get one table partition values without doing a query, from metadata [iceberg-python]

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

   ### Question
   
   I need to get a table partitions values like spark iceberg does:
   
   ![image](https://github.com/apache/iceberg-python/assets/60315717/186350c7-0201-4db7-bb0e-d802d99f2915)
   
   I wasnt able to find a way to get that from the table instance itself.
   
   catalog = pyiceberg.catalog.load_catalog(
       'AwsGlueCatalog', **{"type": "glue"}
   )
   table = catalog.load_table('db.table')
   
   
   
   


-- 
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] How to get one table partition values without doing a query, from metadata [iceberg-python]

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

   Looks like you're looking for the `partitions` metadata table. 
   https://iceberg.apache.org/docs/latest/spark-queries/#partitions
   
   Here's how you can do the same in pyiceberg
   https://github.com/apache/iceberg-python/blob/main/mkdocs/docs/api.md#partitions
   
   This is based on the latest changes in the repo and will be available in the 0.7.0 release. 
   
   In the meantime, you can use it if you install `pyiceberg` using the github repo to get the latest code. 


-- 
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] How to get one table partition values without doing a query, from metadata [iceberg-python]

Posted by "doctormohamed (via GitHub)" <gi...@apache.org>.
doctormohamed closed issue #916: How to get one table partition values without doing a query, from metadata
URL: https://github.com/apache/iceberg-python/issues/916


-- 
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] How to get one table partition values without doing a query, from metadata [iceberg-python]

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

   @kevinjqliu any toughts on 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