Skip to content

Apache DataFusion SQL Query Engine

update cli readme (#2220)

Kun Liub1a28d0774c7
diff --git a/datafusion-cli/README.md b/datafusion-cli/README.md
index f8624bbdaf..b83539975d 100644
--- a/datafusion-cli/README.md
+++ b/datafusion-cli/README.md
@@ -65,17 +65,21 @@ DataFusion CLI v4.0.0-SNAPSHOT
1 row in set. Query took 0.017 seconds.
```
-## Ballista
-If you want to execute the SQL in ballista by `datafusion-cli`, you must build/compile the `datafusion-cli` with features of "ballista" first.
+## DataFusion-Cli
+
+Build the `datafusion-cli` without the feature of ballista.
```bash
-cargo build --features ballista
+cd arrow-datafusion/datafusion-cli
+cargo build
```
-or
+## Ballista
+If you want to execute the SQL in ballista by `datafusion-cli`, you must build/compile the `datafusion-cli` with features of "ballista" first.
```bash
-cargo build -p datafusion-cli --features ballista
+cd arrow-datafusion/datafusion-cli
+cargo build --features ballista
```
The DataFusion CLI can connect to a Ballista scheduler for query execution.
diff --git a/docs/source/user-guide/cli.md b/docs/source/user-guide/cli.md
index 7c6486e701..9561b5e1d1 100644
--- a/docs/source/user-guide/cli.md
+++ b/docs/source/user-guide/cli.md
@@ -65,6 +65,15 @@ DataFusion CLI v5.1.0-SNAPSHOT
1 row in set. Query took 0.017 seconds.
```
+## DataFusion-Cli
+
+Build the `datafusion-cli` without the feature of ballista.
+
+```bash
+cd arrow-datafusion/datafusion-cli
+cargo build
+```
+
## Ballista
The DataFusion CLI can also connect to a Ballista scheduler for query execution.
@@ -73,16 +82,10 @@ Before you use the `datafusion-cli` to connect the Ballista scheduler, you shoul
the `datafusion-cli` with feature of "ballista" first.
```bash
+cd arrow-datafusion/datafusion-cli
cargo build --features ballista
```
-or
-
-```bash
-cargo build -p datafusion-cli --features ballista
-
-```
-
Then, you can connect the Ballista by below command.
```bash