Skip to content

Commit 936d253

Browse files
committed
Add dependencies to ballista example documentation
1 parent e3a682d commit 936d253

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

ballista/rust/client/README.md

+11
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,15 @@ RUST_LOG=info ballista-executor --bind-port 50052 -c 4
8080
Ballista provides a `BallistaContext` as a starting point for creating queries. DataFrames can be created
8181
by invoking the `read_csv`, `read_parquet`, and `sql` methods.
8282

83+
To build a simple ballista example, add the following dependencies to your `Cargo.toml` file:
84+
85+
```toml
86+
[dependencies]
87+
ballista = "0.6"
88+
datafusion = "6.0"
89+
tokio = "1.0"
90+
```
91+
8392
The following example runs a simple aggregate SQL query against a CSV file from the
8493
[New York Taxi and Limousine Commission](https://www1.nyc.gov/site/tlc/about/tlc-trip-record-data.page)
8594
data set.
@@ -120,3 +129,5 @@ async fn main() -> Result<()> {
120129
Ok(())
121130
}
122131
```
132+
133+
More [examples](https://github.com/apache/arrow-datafusion/tree/master/ballista-examples) can be found in the arrow-datafusion repository.

0 commit comments

Comments
 (0)