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)
- `IN (...)` clauses appear to be ignored in merge commands with S3 - extra partitions scanned
- SchemaError occurs during table optimisation after upgrade to v0.18.1 HOT 4
- Slow add_actions.to_pydict for tables with large number of columns, impacting read performance HOT 1
- `DeltaScanBuilder` does not respect datafusion context's `datafusion.execution.parquet.pushdown_filters` HOT 1
- Error decoding field 'stats' when creating checkpoint HOT 3
- Regression in Python multiprocessing support HOT 9
- `RecordBatchWriter` only creates stats for the first 32 columns; this prevents calling `create_checkpoint`. HOT 6
- Provide documentation how to configure various storage backends
- Write also insert change types in writer CDC
- Transaction log parsing performance regression HOT 11
- improve cdc generation with the insert only scenario
- Asymmetry with DeltaTablePartition and actions
- When z-order optimizing, keep partition in only one row_group (if possible)
- Leverage `partitionValues_parsed` from arrow state to report partition values HOT 1
- Add caching mechanism for log/checkpoint stream
- Missing Linux binary releases and source tarball for Python release v0.19.0 HOT 2
- Delta-RS Saved Delta Table not properly ingested into Databricks HOT 3
- insert into parquet file result a lot files?
- Correlate add actions with table version
- expose default_column_properties, column_properties of parquet WriterProperties in python
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.