-
Notifications
You must be signed in to change notification settings - Fork 416
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
Function behaving similarly to SHOW PARTITIONS
in the Python API
#2671
Comments
SHOW PARTITIONS
in the Python APISHOW PARTITIONS
in the Python API
@FrankPortman feel free to open a PR for this, it's definitely useful as a proper public api |
@ion-elgreco is your preference to just open up the API so For example, right now a call to |
Let's go for something more ergonomic since it's a public api |
Seems like a nice feature to have! I can pick this up and raise a PR if no one is working on it, let me know. |
I'd love that - I haven't had a chance to prio yet |
This adds a public method `partitions()` to the `DeltaTable` class to get properly formatted partitions (list of dicts) for the table. Also provides an option to return partitions as a list of tuples, and proxies the partition filters to rust `get_active_partitions()`. This also adds supporting tests for this feature.
This adds a public method `partitions()` to the `DeltaTable` class to get properly formatted partitions (list of dicts) for the table. Also provides an option to return partitions as a list of tuples, and proxies the partition filters to rust `get_active_partitions()`. This also adds supporting tests for this feature.
This adds a public method `partitions()` to the `DeltaTable` class to get properly formatted partitions (list of dicts) for the table. Also provides an option to return partitions as a list of tuples, and proxies the partition filters to rust `get_active_partitions()`. This also adds supporting tests for this feature.
This adds a public method `partitions()` to the `DeltaTable` class to get properly formatted partitions (list of dicts) for the table. Also provides an option to return partitions as a list of tuples, and proxies the partition filters to rust `get_active_partitions()`. This also adds supporting tests for this feature.
This adds a public method `partitions()` to the `DeltaTable` class to get properly formatted partitions (list of dicts) for the table. Also provides an option to return partitions as a list of tuples, and proxies the partition filters to rust `get_active_partitions()`. This also adds supporting tests for this feature.
This adds a public method `partitions()` to the `DeltaTable` class to get properly formatted partitions (list of dicts) for the table. Also provides an option to return partitions as a list of tuples, and proxies the partition filters to rust `get_active_partitions()`. This also adds supporting tests for this feature.
Function behaving similarly to
SHOW PARTITIONS
in the Python APII am wondering if there is something similar to
SHOW PARTITIONS
from the Spark world of interacting with Delta Tables. This is a metadata-only query that returns back all of the partitions live for a specific Delta Table in a tabular format. Functionality such asDeltaTable.files_by_partitions
is super helpful for querying but not quite the same thing. get_active_partitions is almost what I need but (1) it's not exposed in the public API which makes usage a bit clunky (but certainly nothing life ruining) and (2) the struct it returns is not the most ergonomic.Any openness to a PR that does this?
No related issues from what I could tell.
The text was updated successfully, but these errors were encountered: