Skip to content

Commit

Permalink
Add dependencies to ballista example documentation (#1346)
Browse files Browse the repository at this point in the history
  • Loading branch information
jgoday authored Nov 22, 2021
1 parent eaacc70 commit ce3876f
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions ballista/rust/client/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,15 @@ RUST_LOG=info ballista-executor --bind-port 50052 -c 4
Ballista provides a `BallistaContext` as a starting point for creating queries. DataFrames can be created
by invoking the `read_csv`, `read_parquet`, and `sql` methods.

To build a simple ballista example, add the following dependencies to your `Cargo.toml` file:

```toml
[dependencies]
ballista = "0.6"
datafusion = "6.0"
tokio = "1.0"
```

The following example runs a simple aggregate SQL query against a CSV file from the
[New York Taxi and Limousine Commission](https://www1.nyc.gov/site/tlc/about/tlc-trip-record-data.page)
data set.
Expand Down Expand Up @@ -120,3 +129,5 @@ async fn main() -> Result<()> {
Ok(())
}
```

More [examples](https://github.com/apache/arrow-datafusion/tree/master/ballista-examples) can be found in the arrow-datafusion repository.

0 comments on commit ce3876f

Please sign in to comment.