Add a modicum of documentation to make this work

This commit is contained in:
R Tyler Croy 2023-01-04 20:55:16 -08:00
parent 664b5b30a5
commit d00ca8354f
No known key found for this signature in database
GPG Key ID: E5C92681BEF6CEA2
2 changed files with 18 additions and 0 deletions

View File

@ -3,3 +3,20 @@
This repository contains a simple open source bit of example code for writing
rows in a link:https://delta.io[Delta table] with
link:https://github.com/delta-io/delta-rs[the Delta Rust bindings].
You can run this code with:
[source,bash]
----
TABLE_URI=demo-tables/wx cargo run
----
This will write five data points to the delta table stored in the `wx` directory. You can query this with the `deltalake` Python module, for example:
[source, python]
----
from deltalake import DeltaTable
dt = DeltaTable('demo-tables/wx')
df = dt.to_pandas()
df.query('temp > 0')
----

1
demo-tables/wx/.gitignore vendored Normal file
View File

@ -0,0 +1 @@
*