From d00ca8354f37b236b2854948f93f1c7070522cf0 Mon Sep 17 00:00:00 2001 From: "R. Tyler Croy" Date: Wed, 4 Jan 2023 20:55:16 -0800 Subject: [PATCH] Add a modicum of documentation to make this work --- README.adoc | 17 +++++++++++++++++ demo-tables/wx/.gitignore | 1 + 2 files changed, 18 insertions(+) create mode 100644 demo-tables/wx/.gitignore diff --git a/README.adoc b/README.adoc index 771c88c..4a3c459 100644 --- a/README.adoc +++ b/README.adoc @@ -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') +---- diff --git a/demo-tables/wx/.gitignore b/demo-tables/wx/.gitignore new file mode 100644 index 0000000..72e8ffc --- /dev/null +++ b/demo-tables/wx/.gitignore @@ -0,0 +1 @@ +*