Comments (4)
maybe you are looking for get_add_actions
https://delta-io.github.io/delta-rs/usage/examining-table/
from delta-rs.
I think what you are looking for is under DeltaTable()._table.dataset_partitions(). We use that to construct the stats for each fragment for the pyarrow dataset
from delta-rs.
Oh cool. Thanks for the pointer. That gets me closer. Here's what I'm getting
import deltalake
t = deltalake.DeltaTable("mytable")
filename, info = t._table.dataset_partitions(t.schema().to_pyarrow())[0]
info
<pyarrow.compute.Expression ((((((((((((((((((date == 2024-01-03) and is_valid(username)) and is_valid(repo)) and is_valid(sha)) and is_valid(message)) and is_valid(created_at)) and (username >= "000600")) and (repo >= "0-vortex/0-vortex")) and (sha >= "00002c6c6353df7b4429ea6f4ca8f7674df6e8a0")) and (message >= "")) and (created_at >= 2024-01-03 04:00:00.000000)) and (date >= null[date32[day]])) and (username <= "zzzzseong")) and (repo <= "zzzzseong/algorithm")) and (sha <= "ffff8a90f31cba8f163fdd723c3451a04a8c39a2")) and (message <= "🩺 Checked PDS Health")) and (created_at <= 2024-01-03 05:59:59.000000)) and (date <= null[date32[day]]))>
So clearly the stuff I want is in there, however I'm not sure that it's actually programatically accessible from Python. I guess I could raise this upstream with PyArrow to ask for compute expressions to be more introspectable, but this seems like the wrong path.
Any further thoughts, aside from parsing the string repr?
from delta-rs.
Oh cool. Yes, that seems like it likely has the information that I'm looking for. Thank you @sherlockbeard !
from delta-rs.
Related Issues (20)
- Unable to read delta table created using Uniform HOT 2
- Deletion `_change_type` does not appear in change data feed HOT 3
- Don't commit if commit has transaction identifier that has been committed already HOT 3
- Newest docs (potentially) not released
- DeltaTable over S3: creation hangs up when being run from current thread scheduler
- Compaction can rewrite files without reducing file count
- AsyncChunkReader::get_bytes error: Generic MicrosoftAzure error: error decoding response body HOT 2
- Converting DeltaTable to Pandas causes timestamp error HOT 14
- `to_pyarrow_table()` on a table in S3 kept getting "Generic S3 error: error decoding response body" HOT 1
- Allow `pyarrow.dataset.Expression` in `filters` kwarg of `deltalake.DeltaTable.to_pyarrow_table`
- panic in `push_down_filter` HOT 2
- 0.18.1 reintroduces S3 multipart upload bug HOT 5
- Concurrent writers return error despite successfully written to the file HOT 4
- InvalidTableLocation("Unknown scheme: gs") on 0.18.0
- Support HDFS via hdfs-native package HOT 1
- Support string and binary view types. HOT 3
- Document Databricks/delta-rs protocol version support by release
- Arrow: Parquet does not support writing empty structs when creating checkpoint
- Unable to specify columns with a dot in the name in predicate HOT 1
- Support for SQL syntax for filtering similar to PySpark
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from delta-rs.