Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 2 additions & 23 deletions docs/source/user-guide/cli.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@

# DataFusion Command-line Interface

The DataFusion CLI allows SQL queries to be executed by an in-process DataFusion context, or by a distributed
Ballista context.
The DataFusion CLI allows SQL queries to be executed by an in-process DataFusion context.

```
USAGE:
Expand All @@ -36,8 +35,6 @@ OPTIONS:
-p, --data-path <data-path> Path to your data, default to current directory
-f, --file <file>... Execute commands from file(s), then exit
--format <format> Output format [default: table] [possible values: csv, tsv, table, json, ndjson]
--host <host> Ballista scheduler host
--port <port> Ballista scheduler port
```

## Example
Expand Down Expand Up @@ -67,31 +64,13 @@ DataFusion CLI v8.0.0

## DataFusion-Cli

Build the `datafusion-cli` without the feature of ballista.
Build the `datafusion-cli`:

```bash
cd arrow-datafusion/datafusion-cli
cargo build
```

## Ballista

The DataFusion CLI can also connect to a Ballista scheduler for query execution.

Before you use the `datafusion-cli` to connect the Ballista scheduler, you should build/compile
the `datafusion-cli` with feature of "ballista" first.

```bash
cd arrow-datafusion/datafusion-cli
cargo build --features ballista
```

Then, you can connect the Ballista by below command.

```bash
datafusion-cli --host localhost --port 50050
```

## Cli commands

Available commands inside DataFusion CLI are:
Expand Down