This is an automated email from the ASF dual-hosted git repository.
alamb pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/arrow-datafusion.git
The following commit(s) were added to refs/heads/master by this push:
new 54f4b7cc6 chore(doc) remove ballista from datafusion-cli readme (#2604)
54f4b7cc6 is described below
commit 54f4b7cc6462f58641a998f07e8beee986abd03b
Author: Hu Ming <[email protected]>
AuthorDate: Tue May 24 21:09:27 2022 +0800
chore(doc) remove ballista from datafusion-cli readme (#2604)
* chore(doc) remove ballista from datafusion-cli readme
* chore(datafusion-cli) readme
* chore(doc)
---
datafusion-cli/Cargo.lock | 14 ++++++++++++++
datafusion-cli/README.md | 40 +++++++++++-----------------------------
2 files changed, 25 insertions(+), 29 deletions(-)
diff --git a/datafusion-cli/Cargo.lock b/datafusion-cli/Cargo.lock
index fb299093b..1c85ddcf0 100644
--- a/datafusion-cli/Cargo.lock
+++ b/datafusion-cli/Cargo.lock
@@ -354,6 +354,7 @@ dependencies = [
"datafusion-expr",
"datafusion-physical-expr",
"datafusion-row",
+ "datafusion-sql",
"futures",
"hashbrown 0.12.1",
"lazy_static",
@@ -453,6 +454,19 @@ dependencies = [
"rand",
]
+[[package]]
+name = "datafusion-sql"
+version = "8.0.0"
+dependencies = [
+ "ahash",
+ "arrow",
+ "datafusion-common",
+ "datafusion-expr",
+ "hashbrown 0.12.1",
+ "sqlparser",
+ "tokio",
+]
+
[[package]]
name = "digest"
version = "0.10.3"
diff --git a/datafusion-cli/README.md b/datafusion-cli/README.md
index ea82a2502..c07bc3128 100644
--- a/datafusion-cli/README.md
+++ b/datafusion-cli/README.md
@@ -21,25 +21,22 @@
[DataFusion](df) is an extensible query execution framework, written in Rust,
that uses Apache Arrow as its in-memory format.
-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.
```ignore
USAGE:
- datafusion-cli [FLAGS] [OPTIONS]
-
-FLAGS:
- -h, --help Prints help information
- -q, --quiet Reduce printing other than the results and work quietly
- -V, --version Prints version information
+ datafusion-cli [OPTIONS]
OPTIONS:
- -c, --batch-size <batch-size> The batch size of each query, or use
DataFusion default
- -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
+ -c, --batch-size <BATCH_SIZE> The batch size of each query, or use
DataFusion default
+ -f, --file <FILE>... Execute commands from file(s), then exit
+ --format <FORMAT> [default: table] [possible values: csv,
tsv, table, json,
+ nd-json]
+ -h, --help Print help information
+ -p, --data-path <DATA_PATH> Path to your data, default to current
directory
+ -q, --quiet Reduce printing other than the results
and work quietly
+ -r, --rc <RC>... Run the provided files on startup instead
of ~/.datafusionrc
+ -V, --version Print version information
```
## Example
@@ -76,19 +73,4 @@ cd arrow-datafusion/datafusion-cli
cargo build
```
-## 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
-cd arrow-datafusion/datafusion-cli
-cargo build --features ballista
-```
-
-The DataFusion CLI can connect to a Ballista scheduler for query execution.
-
-```bash
-datafusion-cli --host localhost --port 50050
-```
-
[df]: https://crates.io/crates/datafusion