Skip to content

Commit

Permalink
Fix running examples readme
Browse files Browse the repository at this point in the history
Some examples are runnable from any place (e.g. `csv_sql`), but some
expect a specific working directory (e.g. `regexp`). Running from
`datafusion-examples/examples` is tested on CI so guaranteed to work,
let's put this path in the README.

As a follow-up, we should look what it would take to make examples
runnable directly from an IDE such as RustRover.
  • Loading branch information
findepi committed Jul 2, 2024
1 parent d44c7f2 commit 91c8715
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions datafusion-examples/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ cd datafusion
# Download test data
git submodule update --init

# Change to the examples directory
cd datafusion-examples/examples

# Run the `csv_sql` example:
# ... use the equivalent for other examples
cargo run --example csv_sql
Expand Down

0 comments on commit 91c8715

Please sign in to comment.