Apache DataFusion SQL Query Engine
Add new `ballista-cli` crate (#2495)
Andy Grove80f7bbf4ab18
diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.ymlindex 056e83df0c..4a4e32f90a 100644--- a/.github/workflows/rust.yml+++ b/.github/workflows/rust.yml@@ -75,14 +75,6 @@ jobs:env:CARGO_HOME: "/github/home/.cargo"CARGO_TARGET_DIR: "/github/home/target"- - name: Check DataFusion CLI builds with ballista- run: |- (cd datafusion-cli && cargo check)- (cd datafusion-cli && cargo check --no-default-features)- (cd datafusion-cli && cargo check --features=ballista)- env:- CARGO_HOME: "/github/home/.cargo"- CARGO_TARGET_DIR: "/github/home/target"# test the cratelinux-test:@@ -123,9 +115,9 @@ jobs:run: |export ARROW_TEST_DATA=$(pwd)/testing/dataexport PARQUET_TEST_DATA=$(pwd)/parquet-testing/data+ cargo test# test datafusion examplescd datafusion-examples- cargo test --no-default-featurescargo run --example csv_sqlcargo run --example parquet_sqlcargo run --example avro_sql --features=datafusion/avro@@ -134,6 +126,42 @@ jobs:env:CARGO_HOME: "/github/home/.cargo"CARGO_TARGET_DIR: "/github/home/target"++ # run ballista tests+ ballista-test:+ name: Test Ballista on AMD64 Rust ${{ matrix.rust }}+ needs: [linux-build-lib]+ runs-on: ubuntu-latest+ strategy:+ matrix:+ arch: [amd64]+ rust: [stable]+ container:+ image: ${{ matrix.arch }}/rust+ env:+ # Disable full debug symbol generation to speed up CI build and keep memory down+ # "1" means line tables only, which is useful for panic tracebacks.+ RUSTFLAGS: "-C debuginfo=1"+ steps:+ - uses: actions/checkout@v2+ with:+ submodules: true+ - name: Cache Cargo+ uses: actions/cache@v2+ with:+ path: /github/home/.cargo+ # this key equals the ones on `linux-build-lib` for re-use+ key: cargo-cache-+ - name: Cache Rust dependencies+ uses: actions/cache@v2+ with:+ path: /github/home/target+ # this key equals the ones on `linux-build-lib` for re-use+ key: ${{ runner.os }}-${{ matrix.arch }}-target-cache-${{ matrix.rust }}+ - name: Setup Rust toolchain+ uses: ./.github/actions/setup-builder+ with:+ rust-version: ${{ matrix.rust }}# Ballista is currently not part of the main workspace so requires a separate test step- name: Run Ballista testsrun: |@@ -209,6 +237,8 @@ jobs:POSTGRES_PASSWORD: postgres- name: Build datafusion-clirun: (cd datafusion-cli && cargo build)+ - name: Build ballista-cli+ run: (cd ballista-cli && cargo build)- name: Test Psql Parityrun: python -m pytest -v integration-tests/test_psql_parity.pyenv:diff --git a/.gitignore b/.gitignoreindex 23d6097101..1cfeb1f0b6 100644--- a/.gitignore+++ b/.gitignore@@ -85,6 +85,7 @@ cpp/Brewfile.lock.jsontargetCargo.lock!datafusion-cli/Cargo.lock+!ballista-cli/Cargo.lockrusty-tags.vi.historydiff --git a/Cargo.toml b/Cargo.tomlindex 3567a4cea6..feb3ebe5c5 100644--- a/Cargo.toml+++ b/Cargo.toml@@ -33,7 +33,7 @@ members = ["ballista/rust/scheduler","ballista-examples",]-exclude = ["datafusion-cli"]+exclude = ["ballista-cli", "datafusion-cli"][profile.release]codegen-units = 1diff --git a/ballista-cli/Cargo.lock b/ballista-cli/Cargo.locknew file mode 100644index 0000000000..528148c9b4--- /dev/null+++ b/ballista-cli/Cargo.lock@@ -0,0 +1,2557 @@+# This file is automatically @generated by Cargo.+# It is not intended for manual editing.+version = 3++[[package]]+name = "adler"+version = "1.0.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "f26201604c87b1e01bd3d98f8d5d9a8fcbb815e8cedb41ffccbeb4bf593a35fe"++[[package]]+name = "ahash"+version = "0.7.6"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "fcb51a0695d8f838b1ee009b3fbf66bda078cd64590202a864a8f3e8c4315c47"+dependencies = [+ "getrandom",+ "once_cell",+ "version_check",+]++[[package]]+name = "aho-corasick"+version = "0.7.18"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "1e37cfd5e7657ada45f742d6e99ca5788580b5c529dc78faf11ece6dc702656f"+dependencies = [+ "memchr",+]++[[package]]+name = "alloc-no-stdlib"+version = "2.0.3"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "35ef4730490ad1c4eae5c4325b2a95f521d023e5c885853ff7aca0a6a1631db3"++[[package]]+name = "alloc-stdlib"+version = "0.2.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "697ed7edc0f1711de49ce108c541623a0af97c6c60b2f6e2b65229847ac843c2"+dependencies = [+ "alloc-no-stdlib",+]++[[package]]+name = "anyhow"+version = "1.0.57"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "08f9b8508dccb7687a1d6c4ce66b2b0ecef467c94667de27d8d7fe1f8d2a9cdc"++[[package]]+name = "arrayref"+version = "0.3.6"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "a4c527152e37cf757a3f78aae5a06fbeefdb07ccc535c980a3208ee3060dd544"++[[package]]+name = "arrayvec"+version = "0.7.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "8da52d66c7071e2e3fa2a1e5c6d088fec47b593032b254f5e980de8ea54454d6"++[[package]]+name = "arrow"+version = "13.0.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "5c6bee230122beb516ead31935a61f683715f987c6f003eff44ad6986624105a"+dependencies = [+ "bitflags",+ "chrono",+ "comfy-table",+ "csv",+ "flatbuffers",+ "half",+ "hex",+ "indexmap",+ "lazy_static",+ "lexical-core",+ "multiversion",+ "num",+ "rand",+ "regex",+ "serde",+ "serde_derive",+ "serde_json",+]++[[package]]+name = "arrow-flight"+version = "13.0.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "0a3666d2dbc637fa979d1f0bf3031d39a80e709f3b9ec88e3d573c1d666bf553"+dependencies = [+ "arrow",+ "base64",+ "bytes",+ "futures",+ "proc-macro2",+ "prost",+ "prost-derive",+ "tokio",+ "tonic",+ "tonic-build",+]++[[package]]+name = "async-stream"+version = "0.3.3"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "dad5c83079eae9969be7fadefe640a1c566901f05ff91ab221de4b6f68d9507e"+dependencies = [+ "async-stream-impl",+ "futures-core",+]++[[package]]+name = "async-stream-impl"+version = "0.3.3"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "10f203db73a71dfa2fb6dd22763990fa26f3d2625a6da2da900d23b87d26be27"+dependencies = [+ "proc-macro2",+ "quote",+ "syn",+]++[[package]]+name = "async-trait"+version = "0.1.53"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "ed6aa3524a2dfcf9fe180c51eae2b58738348d819517ceadf95789c51fff7600"+dependencies = [+ "proc-macro2",+ "quote",+ "syn",+]++[[package]]+name = "atty"+version = "0.2.14"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "d9b39be18770d11421cdb1b9947a45dd3f37e93092cbf377614828a319d5fee8"+dependencies = [+ "hermit-abi",+ "libc",+ "winapi",+]++[[package]]+name = "autocfg"+version = "1.1.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "d468802bab17cbc0cc575e9b053f41e72aa36bfa6b7f55e3529ffa43161b97fa"++[[package]]+name = "axum"+version = "0.5.4"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "f4af7447fc1214c1f3a1ace861d0216a6c8bb13965b64bbad9650f375b67689a"+dependencies = [+ "async-trait",+ "axum-core",+ "bitflags",+ "bytes",+ "futures-util",+ "http",+ "http-body",+ "hyper",+ "itoa 1.0.1",+ "matchit",+ "memchr",+ "mime",+ "percent-encoding",+ "pin-project-lite",+ "serde",+ "sync_wrapper",+ "tokio",+ "tower",+ "tower-http",+ "tower-layer",+ "tower-service",+]++[[package]]+name = "axum-core"+version = "0.2.4"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "da31c0ed7b4690e2c78fe4b880d21cd7db04a346ebc658b4270251b695437f17"+dependencies = [+ "async-trait",+ "bytes",+ "futures-util",+ "http",+ "http-body",+ "mime",+]++[[package]]+name = "ballista"+version = "0.6.0"+dependencies = [+ "ballista-core",+ "datafusion",+ "futures",+ "log",+ "parking_lot",+ "sqlparser",+ "tempfile",+ "tokio",+]++[[package]]+name = "ballista-cli"+version = "0.6.0"+dependencies = [+ "arrow",+ "ballista",+ "clap",+ "datafusion",+ "datafusion-cli",+ "dirs",+ "env_logger",+ "mimalloc",+ "rustyline",+ "tokio",+]++[[package]]+name = "ballista-core"+version = "0.6.0"+dependencies = [+ "ahash",+ "arrow-flight",+ "async-trait",+ "chrono",+ "clap",+ "datafusion",+ "datafusion-proto",+ "futures",+ "hashbrown 0.12.1",+ "libloading",+ "log",+ "once_cell",+ "parking_lot",+ "parse_arg",+ "prost",+ "prost-types",+ "rustc_version",+ "serde",+ "sqlparser",+ "tokio",+ "tonic",+ "tonic-build",+ "uuid",+ "walkdir",+]++[[package]]+name = "base64"+version = "0.13.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "904dfeac50f3cdaba28fc6f57fdcddb75f49ed61346676a78c4ffe55877802fd"++[[package]]+name = "bitflags"+version = "1.3.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a"++[[package]]+name = "blake2"+version = "0.10.4"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "b9cf849ee05b2ee5fba5e36f97ff8ec2533916700fc0758d40d92136a42f3388"+dependencies = [+ "digest",+]++[[package]]+name = "blake3"+version = "1.3.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "a08e53fc5a564bb15bfe6fae56bd71522205f1f91893f9c0116edad6496c183f"+dependencies = [+ "arrayref",+ "arrayvec",+ "cc",+ "cfg-if",+ "constant_time_eq",+ "digest",+]++[[package]]+name = "block-buffer"+version = "0.10.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "0bf7fe51849ea569fd452f37822f606a5cabb684dc918707a0193fd4664ff324"+dependencies = [+ "generic-array",+]++[[package]]+name = "brotli"+version = "3.3.4"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "a1a0b1dbcc8ae29329621f8d4f0d835787c1c38bb1401979b49d13b0b305ff68"+dependencies = [+ "alloc-no-stdlib",+ "alloc-stdlib",+ "brotli-decompressor",+]++[[package]]+name = "brotli-decompressor"+version = "2.3.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "59ad2d4653bf5ca36ae797b1f4bb4dbddb60ce49ca4aed8a2ce4829f60425b80"+dependencies = [+ "alloc-no-stdlib",+ "alloc-stdlib",+]++[[package]]+name = "bstr"+version = "0.2.17"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "ba3569f383e8f1598449f1a423e72e99569137b47740b1da11ef19af3d5c3223"+dependencies = [+ "lazy_static",+ "memchr",+ "regex-automata",+ "serde",+]++[[package]]+name = "byteorder"+version = "1.4.3"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "14c189c53d098945499cdfa7ecc63567cf3886b3332b312a5b4585d8d3a6a610"++[[package]]+name = "bytes"+version = "1.1.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "c4872d67bab6358e59559027aa3b9157c53d9358c51423c17554809a8858e0f8"++[[package]]+name = "cc"+version = "1.0.73"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "2fff2a6927b3bb87f9595d67196a70493f627687a71d87a0d692242c33f58c11"+dependencies = [+ "jobserver",+]++[[package]]+name = "cfg-if"+version = "1.0.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd"++[[package]]+name = "chrono"+version = "0.4.19"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "670ad68c9088c2a963aaa298cb369688cf3f9465ce5e2d4ca10e6e0098a1ce73"+dependencies = [+ "libc",+ "num-integer",+ "num-traits",+ "winapi",+]++[[package]]+name = "clap"+version = "3.1.15"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "85a35a599b11c089a7f49105658d089b8f2cf0882993c17daf6de15285c2c35d"+dependencies = [+ "atty",+ "bitflags",+ "clap_derive",+ "clap_lex",+ "indexmap",+ "lazy_static",+ "strsim",+ "termcolor",+ "textwrap",+]++[[package]]+name = "clap_derive"+version = "3.1.7"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "a3aab4734e083b809aaf5794e14e756d1c798d2c69c7f7de7a09a2f5214993c1"+dependencies = [+ "heck 0.4.0",+ "proc-macro-error",+ "proc-macro2",+ "quote",+ "syn",+]++[[package]]+name = "clap_lex"+version = "0.2.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "a37c35f1112dad5e6e0b1adaff798507497a18fceeb30cceb3bae7d1427b9213"+dependencies = [+ "os_str_bytes",+]++[[package]]+name = "clipboard-win"+version = "4.4.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "2f3e1238132dc01f081e1cbb9dace14e5ef4c3a51ee244bd982275fb514605db"+dependencies = [+ "error-code",+ "str-buf",+ "winapi",+]++[[package]]+name = "cmake"+version = "0.1.48"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "e8ad8cef104ac57b68b89df3208164d228503abbdce70f6880ffa3d970e7443a"+dependencies = [+ "cc",+]++[[package]]+name = "comfy-table"+version = "5.0.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "b103d85ca6e209388771bfb7aa6b68a7aeec4afbf6f0a0264bfbf50360e5212e"+dependencies = [+ "strum",+ "strum_macros",+ "unicode-width",+]++[[package]]+name = "constant_time_eq"+version = "0.1.5"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "245097e9a4535ee1e3e3931fcfcd55a796a44c643e8596ff6566d68f09b87bbc"++[[package]]+name = "cpufeatures"+version = "0.2.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "59a6001667ab124aebae2a495118e11d30984c3a653e99d86d58971708cf5e4b"+dependencies = [+ "libc",+]++[[package]]+name = "crc32fast"+version = "1.3.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "b540bd8bc810d3885c6ea91e2018302f68baba2129ab3e88f32389ee9370880d"+dependencies = [+ "cfg-if",+]++[[package]]+name = "crypto-common"+version = "0.1.3"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "57952ca27b5e3606ff4dd79b0020231aaf9d6aa76dc05fd30137538c50bd3ce8"+dependencies = [+ "generic-array",+ "typenum",+]++[[package]]+name = "csv"+version = "1.1.6"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "22813a6dc45b335f9bade10bf7271dc477e81113e89eb251a0bc2a8a81c536e1"+dependencies = [+ "bstr",+ "csv-core",+ "itoa 0.4.8",+ "ryu",+ "serde",+]++[[package]]+name = "csv-core"+version = "0.1.10"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "2b2466559f260f48ad25fe6317b3c8dac77b5bdb5763ac7d9d6103530663bc90"+dependencies = [+ "memchr",+]++[[package]]+name = "datafusion"+version = "7.0.0"+dependencies = [+ "ahash",+ "arrow",+ "async-trait",+ "chrono",+ "datafusion-common",+ "datafusion-data-access",+ "datafusion-expr",+ "datafusion-physical-expr",+ "datafusion-row",+ "futures",+ "hashbrown 0.12.1",+ "lazy_static",+ "log",+ "num_cpus",+ "ordered-float 3.0.0",+ "parking_lot",+ "parquet",+ "paste",+ "pin-project-lite",+ "rand",+ "smallvec",+ "sqlparser",+ "tempfile",+ "tokio",+ "tokio-stream",+ "uuid",+]++[[package]]+name = "datafusion-cli"+version = "7.0.0"+dependencies = [+ "arrow",+ "clap",+ "datafusion",+ "dirs",+ "env_logger",+ "mimalloc",+ "rustyline",+ "tokio",+]++[[package]]+name = "datafusion-common"+version = "7.0.0"+dependencies = [+ "arrow",+ "ordered-float 3.0.0",+ "parquet",+ "sqlparser",+]++[[package]]+name = "datafusion-data-access"+version = "7.0.0"+dependencies = [+ "async-trait",+ "chrono",+ "futures",+ "glob",+ "parking_lot",+ "tempfile",+ "tokio",+]++[[package]]+name = "datafusion-expr"+version = "7.0.0"+dependencies = [+ "ahash",+ "arrow",+ "datafusion-common",+ "sqlparser",+]++[[package]]+name = "datafusion-physical-expr"+version = "7.0.0"+dependencies = [+ "ahash",+ "arrow",+ "blake2",+ "blake3",+ "chrono",+ "datafusion-common",+ "datafusion-expr",+ "datafusion-row",+ "hashbrown 0.12.1",+ "lazy_static",+ "md-5",+ "ordered-float 3.0.0",+ "paste",+ "rand",+ "regex",+ "sha2",+ "unicode-segmentation",+]++[[package]]+name = "datafusion-proto"+version = "7.0.0"+dependencies = [+ "datafusion",+ "prost",+ "tonic-build",+]++[[package]]+name = "datafusion-row"+version = "7.0.0"+dependencies = [+ "arrow",+ "datafusion-common",+ "paste",+ "rand",+]++[[package]]+name = "digest"+version = "0.10.3"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "f2fb860ca6fafa5552fb6d0e816a69c8e49f0908bf524e30a90d97c85892d506"+dependencies = [+ "block-buffer",+ "crypto-common",+ "subtle",+]++[[package]]+name = "dirs"+version = "4.0.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "ca3aa72a6f96ea37bbc5aa912f6788242832f75369bdfdadcb0e38423f100059"+dependencies = [+ "dirs-sys",+]++[[package]]+name = "dirs-next"+version = "2.0.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "b98cf8ebf19c3d1b223e151f99a4f9f0690dca41414773390fc824184ac833e1"+dependencies = [+ "cfg-if",+ "dirs-sys-next",+]++[[package]]+name = "dirs-sys"+version = "0.3.7"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "1b1d1d91c932ef41c0f2663aa8b0ca0342d444d842c06914aa0a7e352d0bada6"+dependencies = [+ "libc",+ "redox_users",+ "winapi",+]++[[package]]+name = "dirs-sys-next"+version = "0.1.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "4ebda144c4fe02d1f7ea1a7d9641b6fc6b580adcfa024ae48797ecdeb6825b4d"+dependencies = [+ "libc",+ "redox_users",+ "winapi",+]++[[package]]+name = "either"+version = "1.6.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "e78d4f1cc4ae33bbfc157ed5d5a5ef3bc29227303d595861deb238fcec4e9457"++[[package]]+name = "endian-type"+version = "0.1.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "c34f04666d835ff5d62e058c3995147c06f42fe86ff053337632bca83e42702d"++[[package]]+name = "env_logger"+version = "0.9.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "0b2cf0344971ee6c64c31be0d530793fba457d322dfec2810c453d0ef228f9c3"+dependencies = [+ "atty",+ "humantime",+ "log",+ "regex",+ "termcolor",+]++[[package]]+name = "errno"+version = "0.2.8"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "f639046355ee4f37944e44f60642c6f3a7efa3cf6b78c78a0d989a8ce6c396a1"+dependencies = [+ "errno-dragonfly",+ "libc",+ "winapi",+]++[[package]]+name = "errno-dragonfly"+version = "0.1.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "aa68f1b12764fab894d2755d2518754e71b4fd80ecfb822714a1206c2aab39bf"+dependencies = [+ "cc",+ "libc",+]++[[package]]+name = "error-code"+version = "2.3.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "64f18991e7bf11e7ffee451b5318b5c1a73c52d0d0ada6e5a3017c8c1ced6a21"+dependencies = [+ "libc",+ "str-buf",+]++[[package]]+name = "fastrand"+version = "1.7.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "c3fcf0cee53519c866c09b5de1f6c56ff9d647101f81c1964fa632e148896cdf"+dependencies = [+ "instant",+]++[[package]]+name = "fd-lock"+version = "3.0.5"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "46e245f4c8ec30c6415c56cb132c07e69e74f1942f6b4a4061da748b49f486ca"+dependencies = [+ "cfg-if",+ "rustix",+ "windows-sys 0.30.0",+]++[[package]]+name = "fixedbitset"+version = "0.4.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "279fb028e20b3c4c320317955b77c5e0c9701f05a1d309905d6fc702cdc5053e"++[[package]]+name = "flatbuffers"+version = "2.1.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "86b428b715fdbdd1c364b84573b5fdc0f84f8e423661b9f398735278bc7f2b6a"+dependencies = [+ "bitflags",+ "smallvec",+ "thiserror",+]++[[package]]+name = "flate2"+version = "1.0.23"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "b39522e96686d38f4bc984b9198e3a0613264abaebaff2c5c918bfa6b6da09af"+dependencies = [+ "cfg-if",+ "crc32fast",+ "libc",+ "miniz_oxide",+]++[[package]]+name = "fnv"+version = "1.0.7"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "3f9eec918d3f24069decb9af1554cad7c880e2da24a9afd88aca000531ab82c1"++[[package]]+name = "futures"+version = "0.3.21"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "f73fe65f54d1e12b726f517d3e2135ca3125a437b6d998caf1962961f7172d9e"+dependencies = [+ "futures-channel",+ "futures-core",+ "futures-executor",+ "futures-io",+ "futures-sink",+ "futures-task",+ "futures-util",+]++[[package]]+name = "futures-channel"+version = "0.3.21"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "c3083ce4b914124575708913bca19bfe887522d6e2e6d0952943f5eac4a74010"+dependencies = [+ "futures-core",+ "futures-sink",+]++[[package]]+name = "futures-core"+version = "0.3.21"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "0c09fd04b7e4073ac7156a9539b57a484a8ea920f79c7c675d05d289ab6110d3"++[[package]]+name = "futures-executor"+version = "0.3.21"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "9420b90cfa29e327d0429f19be13e7ddb68fa1cccb09d65e5706b8c7a749b8a6"+dependencies = [+ "futures-core",+ "futures-task",+ "futures-util",+]++[[package]]+name = "futures-io"+version = "0.3.21"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "fc4045962a5a5e935ee2fdedaa4e08284547402885ab326734432bed5d12966b"++[[package]]+name = "futures-macro"+version = "0.3.21"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "33c1e13800337f4d4d7a316bf45a567dbcb6ffe087f16424852d97e97a91f512"+dependencies = [+ "proc-macro2",+ "quote",+ "syn",+]++[[package]]+name = "futures-sink"+version = "0.3.21"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "21163e139fa306126e6eedaf49ecdb4588f939600f0b1e770f4205ee4b7fa868"++[[package]]+name = "futures-task"+version = "0.3.21"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "57c66a976bf5909d801bbef33416c41372779507e7a6b3a5e25e4749c58f776a"++[[package]]+name = "futures-util"+version = "0.3.21"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "d8b7abd5d659d9b90c8cba917f6ec750a74e2dc23902ef9cd4cc8c8b22e6036a"+dependencies = [+ "futures-channel",+ "futures-core",+ "futures-io",+ "futures-macro",+ "futures-sink",+ "futures-task",+ "memchr",+ "pin-project-lite",+ "pin-utils",+ "slab",+]++[[package]]+name = "generic-array"+version = "0.14.5"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "fd48d33ec7f05fbfa152300fdad764757cbded343c1aa1cff2fbaf4134851803"+dependencies = [+ "typenum",+ "version_check",+]++[[package]]+name = "getrandom"+version = "0.2.6"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "9be70c98951c83b8d2f8f60d7065fa6d5146873094452a1008da8c2f1e4205ad"+dependencies = [+ "cfg-if",+ "libc",+ "wasi 0.10.2+wasi-snapshot-preview1",+]++[[package]]+name = "glob"+version = "0.3.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "9b919933a397b79c37e33b77bb2aa3dc8eb6e165ad809e58ff75bc7db2e34574"++[[package]]+name = "h2"+version = "0.3.13"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "37a82c6d637fc9515a4694bbf1cb2457b79d81ce52b3108bdeea58b07dd34a57"+dependencies = [+ "bytes",+ "fnv",+ "futures-core",+ "futures-sink",+ "futures-util",+ "http",+ "indexmap",+ "slab",+ "tokio",+ "tokio-util",+ "tracing",+]++[[package]]+name = "half"+version = "1.8.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "eabb4a44450da02c90444cf74558da904edde8fb4e9035a9a6a4e15445af0bd7"++[[package]]+name = "hashbrown"+version = "0.11.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "ab5ef0d4909ef3724cc8cce6ccc8572c5c817592e9285f5464f8e86f8bd3726e"++[[package]]+name = "hashbrown"+version = "0.12.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "db0d4cf898abf0081f964436dc980e96670a0f36863e4b83aaacdb65c9d7ccc3"+dependencies = [+ "ahash",+]++[[package]]+name = "heck"+version = "0.3.3"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "6d621efb26863f0e9924c6ac577e8275e5e6b77455db64ffa6c65c904e9e132c"+dependencies = [+ "unicode-segmentation",+]++[[package]]+name = "heck"+version = "0.4.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "2540771e65fc8cb83cd6e8a237f70c319bd5c29f78ed1084ba5d50eeac86f7f9"++[[package]]+name = "hermit-abi"+version = "0.1.19"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "62b467343b94ba476dcb2500d242dadbb39557df889310ac77c5d99100aaac33"+dependencies = [+ "libc",+]++[[package]]+name = "hex"+version = "0.4.3"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "7f24254aa9a54b5c858eaee2f5bccdb46aaf0e486a595ed5fd8f86ba55232a70"++[[package]]+name = "http"+version = "0.2.7"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "ff8670570af52249509a86f5e3e18a08c60b177071826898fde8997cf5f6bfbb"+dependencies = [+ "bytes",+ "fnv",+ "itoa 1.0.1",+]++[[package]]+name = "http-body"+version = "0.4.4"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "1ff4f84919677303da5f147645dbea6b1881f368d03ac84e1dc09031ebd7b2c6"+dependencies = [+ "bytes",+ "http",+ "pin-project-lite",+]++[[package]]+name = "http-range-header"+version = "0.3.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "0bfe8eed0a9285ef776bb792479ea3834e8b94e13d615c2f66d03dd50a435a29"++[[package]]+name = "httparse"+version = "1.7.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "496ce29bb5a52785b44e0f7ca2847ae0bb839c9bd28f69acac9b99d461c0c04c"++[[package]]+name = "httpdate"+version = "1.0.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "c4a1e36c821dbe04574f602848a19f742f4fb3c98d40449f11bcad18d6b17421"++[[package]]+name = "humantime"+version = "2.1.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "9a3a5bfb195931eeb336b2a7b4d761daec841b97f947d34394601737a7bba5e4"++[[package]]+name = "hyper"+version = "0.14.18"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "b26ae0a80afebe130861d90abf98e3814a4f28a4c6ffeb5ab8ebb2be311e0ef2"+dependencies = [+ "bytes",+ "futures-channel",+ "futures-core",+ "futures-util",+ "h2",+ "http",+ "http-body",+ "httparse",+ "httpdate",+ "itoa 1.0.1",+ "pin-project-lite",+ "socket2",+ "tokio",+ "tower-service",+ "tracing",+ "want",+]++[[package]]+name = "hyper-timeout"+version = "0.4.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "bbb958482e8c7be4bc3cf272a766a2b0bf1a6755e7a6ae777f017a31d11b13b1"+dependencies = [+ "hyper",+ "pin-project-lite",+ "tokio",+ "tokio-io-timeout",+]++[[package]]+name = "indexmap"+version = "1.8.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "0f647032dfaa1f8b6dc29bd3edb7bbef4861b8b8007ebb118d6db284fd59f6ee"+dependencies = [+ "autocfg",+ "hashbrown 0.11.2",+]++[[package]]+name = "instant"+version = "0.1.12"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "7a5bbe824c507c5da5956355e86a746d82e0e1464f65d862cc5e71da70e94b2c"+dependencies = [+ "cfg-if",+]++[[package]]+name = "integer-encoding"+version = "1.1.7"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "48dc51180a9b377fd75814d0cc02199c20f8e99433d6762f650d39cdbbd3b56f"++[[package]]+name = "io-lifetimes"+version = "0.6.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "9448015e586b611e5d322f6703812bbca2f1e709d5773ecd38ddb4e3bb649504"++[[package]]+name = "itertools"+version = "0.10.3"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "a9a9d19fa1e79b6215ff29b9d6880b706147f16e9b1dbb1e4e5947b5b02bc5e3"+dependencies = [+ "either",+]++[[package]]+name = "itoa"+version = "0.4.8"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "b71991ff56294aa922b450139ee08b3bfc70982c6b2c7562771375cf73542dd4"++[[package]]+name = "itoa"+version = "1.0.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "1aab8fc367588b89dcee83ab0fd66b72b50b72fa1904d7095045ace2b0c81c35"++[[package]]+name = "jobserver"+version = "0.1.24"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "af25a77299a7f711a01975c35a6a424eb6862092cc2d6c72c4ed6cbc56dfc1fa"+dependencies = [+ "libc",+]++[[package]]+name = "lazy_static"+version = "1.4.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "e2abad23fbc42b3700f2f279844dc832adb2b2eb069b2df918f455c4e18cc646"++[[package]]+name = "lexical-core"+version = "0.8.3"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "92912c4af2e7d9075be3e5e3122c4d7263855fa6cce34fbece4dd08e5884624d"+dependencies = [+ "lexical-parse-float",+ "lexical-parse-integer",+ "lexical-util",+ "lexical-write-float",+ "lexical-write-integer",+]++[[package]]+name = "lexical-parse-float"+version = "0.8.3"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "f518eed87c3be6debe6d26b855c97358d8a11bf05acec137e5f53080f5ad2dd8"+dependencies = [+ "lexical-parse-integer",+ "lexical-util",+ "static_assertions",+]++[[package]]+name = "lexical-parse-integer"+version = "0.8.3"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "afc852ec67c6538bbb2b9911116a385b24510e879a69ab516e6a151b15a79168"+dependencies = [+ "lexical-util",+ "static_assertions",+]++[[package]]+name = "lexical-util"+version = "0.8.3"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "c72a9d52c5c4e62fa2cdc2cb6c694a39ae1382d9c2a17a466f18e272a0930eb1"+dependencies = [+ "static_assertions",+]++[[package]]+name = "lexical-write-float"+version = "0.8.4"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "8a89ec1d062e481210c309b672f73a0567b7855f21e7d2fae636df44d12e97f9"+dependencies = [+ "lexical-util",+ "lexical-write-integer",+ "static_assertions",+]++[[package]]+name = "lexical-write-integer"+version = "0.8.3"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "094060bd2a7c2ff3a16d5304a6ae82727cb3cc9d1c70f813cc73f744c319337e"+dependencies = [+ "lexical-util",+ "static_assertions",+]++[[package]]+name = "libc"+version = "0.2.125"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "5916d2ae698f6de9bfb891ad7a8d65c09d232dc58cc4ac433c7da3b2fd84bc2b"++[[package]]+name = "libloading"+version = "0.7.3"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "efbc0f03f9a775e9f6aed295c6a1ba2253c5757a9e03d55c6caa46a681abcddd"+dependencies = [+ "cfg-if",+ "winapi",+]++[[package]]+name = "libmimalloc-sys"+version = "0.1.25"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "11ca136052550448f55df7898c6dbe651c6b574fe38a0d9ea687a9f8088a2e2c"+dependencies = [+ "cc",+]++[[package]]+name = "linux-raw-sys"+version = "0.0.46"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "d4d2456c373231a208ad294c33dc5bff30051eafd954cd4caae83a712b12854d"++[[package]]+name = "lock_api"+version = "0.4.7"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "327fa5b6a6940e4699ec49a9beae1ea4845c6bab9314e4f84ac68742139d8c53"+dependencies = [+ "autocfg",+ "scopeguard",+]++[[package]]+name = "log"+version = "0.4.17"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "abb12e687cfb44aa40f41fc3978ef76448f9b6038cad6aef4259d3c095a2382e"+dependencies = [+ "cfg-if",+]++[[package]]+name = "lz4"+version = "1.23.3"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "4edcb94251b1c375c459e5abe9fb0168c1c826c3370172684844f8f3f8d1a885"+dependencies = [+ "libc",+ "lz4-sys",+]++[[package]]+name = "lz4-sys"+version = "1.9.3"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "d7be8908e2ed6f31c02db8a9fa962f03e36c53fbfde437363eae3306b85d7e17"+dependencies = [+ "cc",+ "libc",+]++[[package]]+name = "matchit"+version = "0.5.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "73cbba799671b762df5a175adf59ce145165747bb891505c43d09aefbbf38beb"++[[package]]+name = "md-5"+version = "0.10.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "658646b21e0b72f7866c7038ab086d3d5e1cd6271f060fd37defb241949d0582"+dependencies = [+ "digest",+]++[[package]]+name = "memchr"+version = "2.5.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "2dffe52ecf27772e601905b7522cb4ef790d2cc203488bbd0e2fe85fcb74566d"++[[package]]+name = "memoffset"+version = "0.6.5"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "5aa361d4faea93603064a027415f07bd8e1d5c88c9fbf68bf56a285428fd79ce"+dependencies = [+ "autocfg",+]++[[package]]+name = "mimalloc"+version = "0.1.29"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "2f64ad83c969af2e732e907564deb0d0ed393cec4af80776f77dd77a1a427698"+dependencies = [+ "libmimalloc-sys",+]++[[package]]+name = "mime"+version = "0.3.16"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "2a60c7ce501c71e03a9c9c0d35b861413ae925bd979cc7a4e30d060069aaac8d"++[[package]]+name = "miniz_oxide"+version = "0.5.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "d2b29bd4bc3f33391105ebee3589c19197c4271e3e5a9ec9bfe8127eeff8f082"+dependencies = [+ "adler",+]++[[package]]+name = "mio"+version = "0.8.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "52da4364ffb0e4fe33a9841a98a3f3014fb964045ce4f7a45a398243c8d6b0c9"+dependencies = [+ "libc",+ "log",+ "miow",+ "ntapi",+ "wasi 0.11.0+wasi-snapshot-preview1",+ "winapi",+]++[[package]]+name = "miow"+version = "0.3.7"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "b9f1c5b025cda876f66ef43a113f91ebc9f4ccef34843000e0adf6ebbab84e21"+dependencies = [+ "winapi",+]++[[package]]+name = "multimap"+version = "0.8.3"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "e5ce46fe64a9d73be07dcbe690a38ce1b293be448fd8ce1e6c1b8062c9f72c6a"++[[package]]+name = "multiversion"+version = "0.6.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "025c962a3dd3cc5e0e520aa9c612201d127dcdf28616974961a649dca64f5373"+dependencies = [+ "multiversion-macros",+]++[[package]]+name = "multiversion-macros"+version = "0.6.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "a8a3e2bde382ebf960c1f3e79689fa5941625fe9bf694a1cb64af3e85faff3af"+dependencies = [+ "proc-macro2",+ "quote",+ "syn",+]++[[package]]+name = "nibble_vec"+version = "0.1.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "77a5d83df9f36fe23f0c3648c6bbb8b0298bb5f1939c8f2704431371f4b84d43"+dependencies = [+ "smallvec",+]++[[package]]+name = "nix"+version = "0.23.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "9f866317acbd3a240710c63f065ffb1e4fd466259045ccb504130b7f668f35c6"+dependencies = [+ "bitflags",+ "cc",+ "cfg-if",+ "libc",+ "memoffset",+]++[[package]]+name = "ntapi"+version = "0.3.7"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "c28774a7fd2fbb4f0babd8237ce554b73af68021b5f695a3cebd6c59bac0980f"+dependencies = [+ "winapi",+]++[[package]]+name = "num"+version = "0.4.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "43db66d1170d347f9a065114077f7dccb00c1b9478c89384490a3425279a4606"+dependencies = [+ "num-bigint",+ "num-complex",+ "num-integer",+ "num-iter",+ "num-rational",+ "num-traits",+]++[[package]]+name = "num-bigint"+version = "0.4.3"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "f93ab6289c7b344a8a9f60f88d80aa20032336fe78da341afc91c8a2341fc75f"+dependencies = [+ "autocfg",+ "num-integer",+ "num-traits",+]++[[package]]+name = "num-complex"+version = "0.4.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "97fbc387afefefd5e9e39493299f3069e14a140dd34dc19b4c1c1a8fddb6a790"+dependencies = [+ "num-traits",+]++[[package]]+name = "num-integer"+version = "0.1.45"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "225d3389fb3509a24c93f5c29eb6bde2586b98d9f016636dff58d7c6f7569cd9"+dependencies = [+ "autocfg",+ "num-traits",+]++[[package]]+name = "num-iter"+version = "0.1.43"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "7d03e6c028c5dc5cac6e2dec0efda81fc887605bb3d884578bb6d6bf7514e252"+dependencies = [+ "autocfg",+ "num-integer",+ "num-traits",+]++[[package]]+name = "num-rational"+version = "0.4.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "d41702bd167c2df5520b384281bc111a4b5efcf7fbc4c9c222c815b07e0a6a6a"+dependencies = [+ "autocfg",+ "num-bigint",+ "num-integer",+ "num-traits",+]++[[package]]+name = "num-traits"+version = "0.2.15"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "578ede34cf02f8924ab9447f50c28075b4d3e5b269972345e7e0372b38c6cdcd"+dependencies = [+ "autocfg",+]++[[package]]+name = "num_cpus"+version = "1.13.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "19e64526ebdee182341572e50e9ad03965aa510cd94427a4549448f285e957a1"+dependencies = [+ "hermit-abi",+ "libc",+]++[[package]]+name = "once_cell"+version = "1.10.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "87f3e037eac156d1775da914196f0f37741a274155e34a0b7e427c35d2a2ecb9"++[[package]]+name = "ordered-float"+version = "1.1.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "3305af35278dd29f46fcdd139e0b1fbfae2153f0e5928b39b035542dd31e37b7"+dependencies = [+ "num-traits",+]++[[package]]+name = "ordered-float"+version = "3.0.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "96bcbab4bfea7a59c2c0fe47211a1ac4e3e96bea6eb446d704f310bc5c732ae2"+dependencies = [+ "num-traits",+]++[[package]]+name = "os_str_bytes"+version = "6.0.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "8e22443d1643a904602595ba1cd8f7d896afe56d26712531c5ff73a15b2fbf64"++[[package]]+name = "parking_lot"+version = "0.12.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "87f5ec2493a61ac0506c0f4199f99070cbe83857b0337006a30f3e6719b8ef58"+dependencies = [+ "lock_api",+ "parking_lot_core",+]++[[package]]+name = "parking_lot_core"+version = "0.9.3"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "09a279cbf25cb0757810394fbc1e359949b59e348145c643a939a525692e6929"+dependencies = [+ "cfg-if",+ "libc",+ "redox_syscall",+ "smallvec",+ "windows-sys 0.36.1",+]++[[package]]+name = "parquet"+version = "13.0.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "6c6d737baed48775e87a69aa262f1fa2f1d6bd074dedbe9cac244b9aabf2a0b4"+dependencies = [+ "arrow",+ "base64",+ "brotli",+ "byteorder",+ "chrono",+ "flate2",+ "lz4",+ "num",+ "num-bigint",+ "parquet-format",+ "rand",+ "snap",+ "thrift",+ "zstd",+]++[[package]]+name = "parquet-format"+version = "4.0.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "1f0c06cdcd5460967c485f9c40a821746f5955ad81990533c7fae95dbd9bc0b5"+dependencies = [+ "thrift",+]++[[package]]+name = "parse_arg"+version = "0.1.4"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "14248cc8eced350e20122a291613de29e4fa129ba2731818c4cdbb44fccd3e55"++[[package]]+name = "paste"+version = "1.0.7"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "0c520e05135d6e763148b6426a837e239041653ba7becd2e538c076c738025fc"++[[package]]+name = "percent-encoding"+version = "2.1.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "d4fd5641d01c8f18a23da7b6fe29298ff4b55afcccdf78973b24cf3175fee32e"++[[package]]+name = "petgraph"+version = "0.6.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "4a13a2fa9d0b63e5f22328828741e523766fff0ee9e779316902290dff3f824f"+dependencies = [+ "fixedbitset",+ "indexmap",+]++[[package]]+name = "pin-project"+version = "1.0.10"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "58ad3879ad3baf4e44784bc6a718a8698867bb991f8ce24d1bcbe2cfb4c3a75e"+dependencies = [+ "pin-project-internal",+]++[[package]]+name = "pin-project-internal"+version = "1.0.10"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "744b6f092ba29c3650faf274db506afd39944f48420f6c86b17cfe0ee1cb36bb"+dependencies = [+ "proc-macro2",+ "quote",+ "syn",+]++[[package]]+name = "pin-project-lite"+version = "0.2.9"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "e0a7ae3ac2f1173085d398531c705756c94a4c56843785df85a60c1a0afac116"++[[package]]+name = "pin-utils"+version = "0.1.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "8b870d8c151b6f2fb93e84a13146138f05d02ed11c7e7c54f8826aaaf7c9f184"++[[package]]+name = "ppv-lite86"+version = "0.2.16"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "eb9f9e6e233e5c4a35559a617bf40a4ec447db2e84c20b55a6f83167b7e57872"++[[package]]+name = "prettyplease"+version = "0.1.10"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "d9e07e3a46d0771a8a06b5f4441527802830b43e679ba12f44960f48dd4c6803"+dependencies = [+ "proc-macro2",+ "syn",+]++[[package]]+name = "proc-macro-error"+version = "1.0.4"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "da25490ff9892aab3fcf7c36f08cfb902dd3e71ca0f9f9517bea02a73a5ce38c"+dependencies = [+ "proc-macro-error-attr",+ "proc-macro2",+ "quote",+ "syn",+ "version_check",+]++[[package]]+name = "proc-macro-error-attr"+version = "1.0.4"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "a1be40180e52ecc98ad80b184934baf3d0d29f979574e439af5a55274b35f869"+dependencies = [+ "proc-macro2",+ "quote",+ "version_check",+]++[[package]]+name = "proc-macro2"+version = "1.0.37"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "ec757218438d5fda206afc041538b2f6d889286160d649a86a24d37e1235afd1"+dependencies = [+ "unicode-xid",+]++[[package]]+name = "prost"+version = "0.10.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "a07b0857a71a8cb765763950499cae2413c3f9cede1133478c43600d9e146890"+dependencies = [+ "bytes",+ "prost-derive",+]++[[package]]+name = "prost-build"+version = "0.10.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "120fbe7988713f39d780a58cf1a7ef0d7ef66c6d87e5aa3438940c05357929f4"+dependencies = [+ "bytes",+ "cfg-if",+ "cmake",+ "heck 0.4.0",+ "itertools",+ "lazy_static",+ "log",+ "multimap",+ "petgraph",+ "prost",+ "prost-types",+ "regex",+ "tempfile",+ "which",+]++[[package]]+name = "prost-derive"+version = "0.10.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "7b670f45da57fb8542ebdbb6105a925fe571b67f9e7ed9f47a06a84e72b4e7cc"+dependencies = [+ "anyhow",+ "itertools",+ "proc-macro2",+ "quote",+ "syn",+]++[[package]]+name = "prost-types"+version = "0.10.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "2d0a014229361011dc8e69c8a1ec6c2e8d0f2af7c91e3ea3f5b2170298461e68"+dependencies = [+ "bytes",+ "prost",+]++[[package]]+name = "quote"+version = "1.0.18"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "a1feb54ed693b93a84e14094943b84b7c4eae204c512b7ccb95ab0c66d278ad1"+dependencies = [+ "proc-macro2",+]++[[package]]+name = "radix_trie"+version = "0.2.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "c069c179fcdc6a2fe24d8d18305cf085fdbd4f922c041943e203685d6a1c58fd"+dependencies = [+ "endian-type",+ "nibble_vec",+]++[[package]]+name = "rand"+version = "0.8.5"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "34af8d1a0e25924bc5b7c43c079c942339d8f0a8b57c39049bef581b46327404"+dependencies = [+ "libc",+ "rand_chacha",+ "rand_core",+]++[[package]]+name = "rand_chacha"+version = "0.3.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "e6c10a63a0fa32252be49d21e7709d4d4baf8d231c2dbce1eaa8141b9b127d88"+dependencies = [+ "ppv-lite86",+ "rand_core",+]++[[package]]+name = "rand_core"+version = "0.6.3"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "d34f1408f55294453790c48b2f1ebbb1c5b4b7563eb1f418bcfcfdbb06ebb4e7"+dependencies = [+ "getrandom",+]++[[package]]+name = "redox_syscall"+version = "0.2.13"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "62f25bc4c7e55e0b0b7a1d43fb893f4fa1361d0abe38b9ce4f323c2adfe6ef42"+dependencies = [+ "bitflags",+]++[[package]]+name = "redox_users"+version = "0.4.3"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "b033d837a7cf162d7993aded9304e30a83213c648b6e389db233191f891e5c2b"+dependencies = [+ "getrandom",+ "redox_syscall",+ "thiserror",+]++[[package]]+name = "regex"+version = "1.5.5"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "1a11647b6b25ff05a515cb92c365cec08801e83423a235b51e231e1808747286"+dependencies = [+ "aho-corasick",+ "memchr",+ "regex-syntax",+]++[[package]]+name = "regex-automata"+version = "0.1.10"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "6c230d73fb8d8c1b9c0b3135c5142a8acee3a0558fb8db5cf1cb65f8d7862132"++[[package]]+name = "regex-syntax"+version = "0.6.25"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "f497285884f3fcff424ffc933e56d7cbca511def0c9831a7f9b5f6153e3cc89b"++[[package]]+name = "remove_dir_all"+version = "0.5.3"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "3acd125665422973a33ac9d3dd2df85edad0f4ae9b00dafb1a05e43a9f5ef8e7"+dependencies = [+ "winapi",+]++[[package]]+name = "rustc_version"+version = "0.4.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "bfa0f585226d2e68097d4f95d113b15b83a82e819ab25717ec0590d9584ef366"+dependencies = [+ "semver",+]++[[package]]+name = "rustix"+version = "0.34.6"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "f3e74b3f02f2b6eb33790923756784614f456de79d821d6b2670dc7d5fbea807"+dependencies = [+ "bitflags",+ "errno",+ "io-lifetimes",+ "libc",+ "linux-raw-sys",+ "winapi",+]++[[package]]+name = "rustversion"+version = "1.0.6"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "f2cc38e8fa666e2de3c4aba7edeb5ffc5246c1c2ed0e3d17e560aeeba736b23f"++[[package]]+name = "rustyline"+version = "9.1.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "db7826789c0e25614b03e5a54a0717a86f9ff6e6e5247f92b369472869320039"+dependencies = [+ "bitflags",+ "cfg-if",+ "clipboard-win",+ "dirs-next",+ "fd-lock",+ "libc",+ "log",+ "memchr",+ "nix",+ "radix_trie",+ "scopeguard",+ "smallvec",+ "unicode-segmentation",+ "unicode-width",+ "utf8parse",+ "winapi",+]++[[package]]+name = "ryu"+version = "1.0.9"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "73b4b750c782965c211b42f022f59af1fbceabdd026623714f104152f1ec149f"++[[package]]+name = "same-file"+version = "1.0.6"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "93fc1dc3aaa9bfed95e02e6eadabb4baf7e3078b0bd1b4d7b6b0b68378900502"+dependencies = [+ "winapi-util",+]++[[package]]+name = "scopeguard"+version = "1.1.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "d29ab0c6d3fc0ee92fe66e2d99f700eab17a8d57d1c1d3b748380fb20baa78cd"++[[package]]+name = "semver"+version = "1.0.9"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "8cb243bdfdb5936c8dc3c45762a19d12ab4550cdc753bc247637d4ec35a040fd"++[[package]]+name = "serde"+version = "1.0.137"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "61ea8d54c77f8315140a05f4c7237403bf38b72704d031543aa1d16abbf517d1"+dependencies = [+ "serde_derive",+]++[[package]]+name = "serde_derive"+version = "1.0.137"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "1f26faba0c3959972377d3b2d306ee9f71faee9714294e41bb777f83f88578be"+dependencies = [+ "proc-macro2",+ "quote",+ "syn",+]++[[package]]+name = "serde_json"+version = "1.0.80"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "f972498cf015f7c0746cac89ebe1d6ef10c293b94175a243a2d9442c163d9944"+dependencies = [+ "indexmap",+ "itoa 1.0.1",+ "ryu",+ "serde",+]++[[package]]+name = "sha2"+version = "0.10.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "55deaec60f81eefe3cce0dc50bda92d6d8e88f2a27df7c5033b42afeb1ed2676"+dependencies = [+ "cfg-if",+ "cpufeatures",+ "digest",+]++[[package]]+name = "slab"+version = "0.4.6"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "eb703cfe953bccee95685111adeedb76fabe4e97549a58d16f03ea7b9367bb32"++[[package]]+name = "smallvec"+version = "1.8.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "f2dd574626839106c320a323308629dcb1acfc96e32a8cba364ddc61ac23ee83"++[[package]]+name = "snap"+version = "1.0.5"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "45456094d1983e2ee2a18fdfebce3189fa451699d0502cb8e3b49dba5ba41451"++[[package]]+name = "socket2"+version = "0.4.4"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "66d72b759436ae32898a2af0a14218dbf55efde3feeb170eb623637db85ee1e0"+dependencies = [+ "libc",+ "winapi",+]++[[package]]+name = "sqlparser"+version = "0.17.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "ddc2739f3a9bfc68e2f7b7695589f6cb0181c88af73ceaee0c84215cd2a2ae28"+dependencies = [+ "log",+]++[[package]]+name = "static_assertions"+version = "1.1.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "a2eb9349b6444b326872e140eb1cf5e7c522154d69e7a0ffb0fb81c06b37543f"++[[package]]+name = "str-buf"+version = "1.0.5"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "d44a3643b4ff9caf57abcee9c2c621d6c03d9135e0d8b589bd9afb5992cb176a"++[[package]]+name = "strsim"+version = "0.10.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "73473c0e59e6d5812c5dfe2a064a6444949f089e20eec9a2e5506596494e4623"++[[package]]+name = "strum"+version = "0.23.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "cae14b91c7d11c9a851d3fbc80a963198998c2a64eec840477fa92d8ce9b70bb"++[[package]]+name = "strum_macros"+version = "0.23.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "5bb0dc7ee9c15cea6199cde9a127fa16a4c5819af85395457ad72d68edc85a38"+dependencies = [+ "heck 0.3.3",+ "proc-macro2",+ "quote",+ "rustversion",+ "syn",+]++[[package]]+name = "subtle"+version = "2.4.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "6bdef32e8150c2a081110b42772ffe7d7c9032b606bc226c8260fd97e0976601"++[[package]]+name = "syn"+version = "1.0.92"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "7ff7c592601f11445996a06f8ad0c27f094a58857c2f89e97974ab9235b92c52"+dependencies = [+ "proc-macro2",+ "quote",+ "unicode-xid",+]++[[package]]+name = "sync_wrapper"+version = "0.1.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "20518fe4a4c9acf048008599e464deb21beeae3d3578418951a189c235a7a9a8"++[[package]]+name = "tempfile"+version = "3.3.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "5cdb1ef4eaeeaddc8fbd371e5017057064af0911902ef36b39801f67cc6d79e4"+dependencies = [+ "cfg-if",+ "fastrand",+ "libc",+ "redox_syscall",+ "remove_dir_all",+ "winapi",+]++[[package]]+name = "termcolor"+version = "1.1.3"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "bab24d30b911b2376f3a13cc2cd443142f0c81dda04c118693e35b3835757755"+dependencies = [+ "winapi-util",+]++[[package]]+name = "textwrap"+version = "0.15.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "b1141d4d61095b28419e22cb0bbf02755f5e54e0526f97f1e3d1d160e60885fb"++[[package]]+name = "thiserror"+version = "1.0.31"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "bd829fe32373d27f76265620b5309d0340cb8550f523c1dda251d6298069069a"+dependencies = [+ "thiserror-impl",+]++[[package]]+name = "thiserror-impl"+version = "1.0.31"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "0396bc89e626244658bef819e22d0cc459e795a5ebe878e6ec336d1674a8d79a"+dependencies = [+ "proc-macro2",+ "quote",+ "syn",+]++[[package]]+name = "threadpool"+version = "1.8.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "d050e60b33d41c19108b32cea32164033a9013fe3b46cbd4457559bfbf77afaa"+dependencies = [+ "num_cpus",+]++[[package]]+name = "thrift"+version = "0.13.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "0c6d965454947cc7266d22716ebfd07b18d84ebaf35eec558586bbb2a8cb6b5b"+dependencies = [+ "byteorder",+ "integer-encoding",+ "log",+ "ordered-float 1.1.1",+ "threadpool",+]++[[package]]+name = "tokio"+version = "1.18.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "dce653fb475565de9f6fb0614b28bca8df2c430c0cf84bcd9c843f15de5414cc"+dependencies = [+ "bytes",+ "libc",+ "memchr",+ "mio",+ "num_cpus",+ "once_cell",+ "parking_lot",+ "pin-project-lite",+ "socket2",+ "tokio-macros",+ "winapi",+]++[[package]]+name = "tokio-io-timeout"+version = "1.2.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "30b74022ada614a1b4834de765f9bb43877f910cc8ce4be40e89042c9223a8bf"+dependencies = [+ "pin-project-lite",+ "tokio",+]++[[package]]+name = "tokio-macros"+version = "1.7.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "b557f72f448c511a979e2564e55d74e6c4432fc96ff4f6241bc6bded342643b7"+dependencies = [+ "proc-macro2",+ "quote",+ "syn",+]++[[package]]+name = "tokio-stream"+version = "0.1.8"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "50145484efff8818b5ccd256697f36863f587da82cf8b409c53adf1e840798e3"+dependencies = [+ "futures-core",+ "pin-project-lite",+ "tokio",+]++[[package]]+name = "tokio-util"+version = "0.7.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "0edfdeb067411dba2044da6d1cb2df793dd35add7888d73c16e3381ded401764"+dependencies = [+ "bytes",+ "futures-core",+ "futures-sink",+ "pin-project-lite",+ "tokio",+ "tracing",+]++[[package]]+name = "tonic"+version = "0.7.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "30fb54bf1e446f44d870d260d99957e7d11fb9d0a0f5bd1a662ad1411cc103f9"+dependencies = [+ "async-stream",+ "async-trait",+ "axum",+ "base64",+ "bytes",+ "futures-core",+ "futures-util",+ "h2",+ "http",+ "http-body",+ "hyper",+ "hyper-timeout",+ "percent-encoding",+ "pin-project",+ "prost",+ "prost-derive",+ "tokio",+ "tokio-stream",+ "tokio-util",+ "tower",+ "tower-layer",+ "tower-service",+ "tracing",+ "tracing-futures",+]++[[package]]+name = "tonic-build"+version = "0.7.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "c03447cdc9eaf8feffb6412dcb27baf2db11669a6c4789f29da799aabfb99547"+dependencies = [+ "prettyplease",+ "proc-macro2",+ "prost-build",+ "quote",+ "syn",+]++[[package]]+name = "tower"+version = "0.4.12"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "9a89fd63ad6adf737582df5db40d286574513c69a11dac5214dc3b5603d6713e"+dependencies = [+ "futures-core",+ "futures-util",+ "indexmap",+ "pin-project",+ "pin-project-lite",+ "rand",+ "slab",+ "tokio",+ "tokio-util",+ "tower-layer",+ "tower-service",+ "tracing",+]++[[package]]+name = "tower-http"+version = "0.3.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "e980386f06883cf4d0578d6c9178c81f68b45d77d00f2c2c1bc034b3439c2c56"+dependencies = [+ "bitflags",+ "bytes",+ "futures-core",+ "futures-util",+ "http",+ "http-body",+ "http-range-header",+ "pin-project-lite",+ "tower",+ "tower-layer",+ "tower-service",+]++[[package]]+name = "tower-layer"+version = "0.3.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "343bc9466d3fe6b0f960ef45960509f84480bf4fd96f92901afe7ff3df9d3a62"++[[package]]+name = "tower-service"+version = "0.3.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "360dfd1d6d30e05fda32ace2c8c70e9c0a9da713275777f5a4dbb8a1893930c6"++[[package]]+name = "tracing"+version = "0.1.34"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "5d0ecdcb44a79f0fe9844f0c4f33a342cbcbb5117de8001e6ba0dc2351327d09"+dependencies = [+ "cfg-if",+ "log",+ "pin-project-lite",+ "tracing-attributes",+ "tracing-core",+]++[[package]]+name = "tracing-attributes"+version = "0.1.21"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "cc6b8ad3567499f98a1db7a752b07a7c8c7c7c34c332ec00effb2b0027974b7c"+dependencies = [+ "proc-macro2",+ "quote",+ "syn",+]++[[package]]+name = "tracing-core"+version = "0.1.26"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "f54c8ca710e81886d498c2fd3331b56c93aa248d49de2222ad2742247c60072f"+dependencies = [+ "lazy_static",+]++[[package]]+name = "tracing-futures"+version = "0.2.5"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "97d095ae15e245a057c8e8451bab9b3ee1e1f68e9ba2b4fbc18d0ac5237835f2"+dependencies = [+ "pin-project",+ "tracing",+]++[[package]]+name = "try-lock"+version = "0.2.3"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "59547bce71d9c38b83d9c0e92b6066c4253371f15005def0c30d9657f50c7642"++[[package]]+name = "typenum"+version = "1.15.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "dcf81ac59edc17cc8697ff311e8f5ef2d99fcbd9817b34cec66f90b6c3dfd987"++[[package]]+name = "unicode-segmentation"+version = "1.9.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "7e8820f5d777f6224dc4be3632222971ac30164d4a258d595640799554ebfd99"++[[package]]+name = "unicode-width"+version = "0.1.9"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "3ed742d4ea2bd1176e236172c8429aaf54486e7ac098db29ffe6529e0ce50973"++[[package]]+name = "unicode-xid"+version = "0.2.3"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "957e51f3646910546462e67d5f7599b9e4fb8acdd304b087a6494730f9eebf04"++[[package]]+name = "utf8parse"+version = "0.2.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "936e4b492acfd135421d8dca4b1aa80a7bfc26e702ef3af710e0752684df5372"++[[package]]+name = "uuid"+version = "1.0.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "8cfcd319456c4d6ea10087ed423473267e1a071f3bc0aa89f80d60997843c6f0"+dependencies = [+ "getrandom",+]++[[package]]+name = "version_check"+version = "0.9.4"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "49874b5167b65d7193b8aba1567f5c7d93d001cafc34600cee003eda787e483f"++[[package]]+name = "walkdir"+version = "2.3.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "808cf2735cd4b6866113f648b791c6adc5714537bc222d9347bb203386ffda56"+dependencies = [+ "same-file",+ "winapi",+ "winapi-util",+]++[[package]]+name = "want"+version = "0.3.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "1ce8a968cb1cd110d136ff8b819a556d6fb6d919363c61534f6860c7eb172ba0"+dependencies = [+ "log",+ "try-lock",+]++[[package]]+name = "wasi"+version = "0.10.2+wasi-snapshot-preview1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "fd6fbd9a79829dd1ad0cc20627bf1ed606756a7f77edff7b66b7064f9cb327c6"++[[package]]+name = "wasi"+version = "0.11.0+wasi-snapshot-preview1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "9c8d87e72b64a3b4db28d11ce29237c246188f4f51057d65a7eab63b7987e423"++[[package]]+name = "which"+version = "4.2.5"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "5c4fb54e6113b6a8772ee41c3404fb0301ac79604489467e0a9ce1f3e97c24ae"+dependencies = [+ "either",+ "lazy_static",+ "libc",+]++[[package]]+name = "winapi"+version = "0.3.9"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "5c839a674fcd7a98952e593242ea400abe93992746761e38641405d28b00f419"+dependencies = [+ "winapi-i686-pc-windows-gnu",+ "winapi-x86_64-pc-windows-gnu",+]++[[package]]+name = "winapi-i686-pc-windows-gnu"+version = "0.4.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "ac3b87c63620426dd9b991e5ce0329eff545bccbbb34f3be09ff6fb6ab51b7b6"++[[package]]+name = "winapi-util"+version = "0.1.5"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "70ec6ce85bb158151cae5e5c87f95a8e97d2c0c4b001223f33a334e3ce5de178"+dependencies = [+ "winapi",+]++[[package]]+name = "winapi-x86_64-pc-windows-gnu"+version = "0.4.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f"++[[package]]+name = "windows-sys"+version = "0.30.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "030b7ff91626e57a05ca64a07c481973cbb2db774e4852c9c7ca342408c6a99a"+dependencies = [+ "windows_aarch64_msvc 0.30.0",+ "windows_i686_gnu 0.30.0",+ "windows_i686_msvc 0.30.0",+ "windows_x86_64_gnu 0.30.0",+ "windows_x86_64_msvc 0.30.0",+]++[[package]]+name = "windows-sys"+version = "0.36.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "ea04155a16a59f9eab786fe12a4a450e75cdb175f9e0d80da1e17db09f55b8d2"+dependencies = [+ "windows_aarch64_msvc 0.36.1",+ "windows_i686_gnu 0.36.1",+ "windows_i686_msvc 0.36.1",+ "windows_x86_64_gnu 0.36.1",+ "windows_x86_64_msvc 0.36.1",+]++[[package]]+name = "windows_aarch64_msvc"+version = "0.30.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "29277a4435d642f775f63c7d1faeb927adba532886ce0287bd985bffb16b6bca"++[[package]]+name = "windows_aarch64_msvc"+version = "0.36.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "9bb8c3fd39ade2d67e9874ac4f3db21f0d710bee00fe7cab16949ec184eeaa47"++[[package]]+name = "windows_i686_gnu"+version = "0.30.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "1145e1989da93956c68d1864f32fb97c8f561a8f89a5125f6a2b7ea75524e4b8"++[[package]]+name = "windows_i686_gnu"+version = "0.36.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "180e6ccf01daf4c426b846dfc66db1fc518f074baa793aa7d9b9aaeffad6a3b6"++[[package]]+name = "windows_i686_msvc"+version = "0.30.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "d4a09e3a0d4753b73019db171c1339cd4362c8c44baf1bcea336235e955954a6"++[[package]]+name = "windows_i686_msvc"+version = "0.36.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "e2e7917148b2812d1eeafaeb22a97e4813dfa60a3f8f78ebe204bcc88f12f024"++[[package]]+name = "windows_x86_64_gnu"+version = "0.30.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "8ca64fcb0220d58db4c119e050e7af03c69e6f4f415ef69ec1773d9aab422d5a"++[[package]]+name = "windows_x86_64_gnu"+version = "0.36.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "4dcd171b8776c41b97521e5da127a2d86ad280114807d0b2ab1e462bc764d9e1"++[[package]]+name = "windows_x86_64_msvc"+version = "0.30.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "08cabc9f0066848fef4bc6a1c1668e6efce38b661d2aeec75d18d8617eebb5f1"++[[package]]+name = "windows_x86_64_msvc"+version = "0.36.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "c811ca4a8c853ef420abd8592ba53ddbbac90410fab6903b3e79972a631f7680"++[[package]]+name = "zstd"+version = "0.11.1+zstd.1.5.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "77a16b8414fde0414e90c612eba70985577451c4c504b99885ebed24762cb81a"+dependencies = [+ "zstd-safe",+]++[[package]]+name = "zstd-safe"+version = "5.0.1+zstd.1.5.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "7c12659121420dd6365c5c3de4901f97145b79651fb1d25814020ed2ed0585ae"+dependencies = [+ "libc",+ "zstd-sys",+]++[[package]]+name = "zstd-sys"+version = "2.0.1+zstd.1.5.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "9fd07cbbc53846d9145dbffdf6dd09a7a0aa52be46741825f5c97bdd4f73f12b"+dependencies = [+ "cc",+ "libc",+]diff --git a/ballista-cli/Cargo.toml b/ballista-cli/Cargo.tomlnew file mode 100644index 0000000000..d921f9b0e9--- /dev/null+++ b/ballista-cli/Cargo.toml@@ -0,0 +1,41 @@+# Licensed to the Apache Software Foundation (ASF) under one+# or more contributor license agreements. See the NOTICE file+# distributed with this work for additional information+# regarding copyright ownership. The ASF licenses this file+# to you under the Apache License, Version 2.0 (the+# "License"); you may not use this file except in compliance+# with the License. You may obtain a copy of the License at+#+# http://www.apache.org/licenses/LICENSE-2.0+#+# Unless required by applicable law or agreed to in writing,+# software distributed under the License is distributed on an+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY+# KIND, either express or implied. See the License for the+# specific language governing permissions and limitations+# under the License.++[package]+name = "ballista-cli"+description = "Command Line Client for Ballista distributed query engine."+version = "0.6.0"+authors = ["Apache Arrow <[email protected]>"]+edition = "2021"+keywords = [ "ballista", "cli", ]+license = "Apache-2.0"+homepage = "https://github.com/apache/arrow-datafusion"+repository = "https://github.com/apache/arrow-datafusion"+rust-version = "1.59"+readme = "README.md"++[dependencies]+arrow = { version = "13" }+ballista = { path = "../ballista/rust/client", version = "0.6.0" }+clap = { version = "3", features = ["derive", "cargo"] }+datafusion = { path = "../datafusion/core", version = "7.0.0" }+datafusion-cli = { path = "../datafusion-cli", version = "7.0.0" }+dirs = "4.0.0"+env_logger = "0.9"+mimalloc = { version = "*", default-features = false }+rustyline = "9.0"+tokio = { version = "1.0", features = ["macros", "rt", "rt-multi-thread", "sync", "parking_lot"] }diff --git a/ballista-cli/Dockerfile b/ballista-cli/Dockerfilenew file mode 100644index 0000000000..7a35d185b7--- /dev/null+++ b/ballista-cli/Dockerfile@@ -0,0 +1,38 @@+# Licensed to the Apache Software Foundation (ASF) under one+# or more contributor license agreements. See the NOTICE file+# distributed with this work for additional information+# regarding copyright ownership. The ASF licenses this file+# to you under the Apache License, Version 2.0 (the+# "License"); you may not use this file except in compliance+# with the License. You may obtain a copy of the License at+#+# http://www.apache.org/licenses/LICENSE-2.0+#+# Unless required by applicable law or agreed to in writing,+# software distributed under the License is distributed on an+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY+# KIND, either express or implied. See the License for the+# specific language governing permissions and limitations+# under the License.++FROM rust:1.59 as builder++COPY ./datafusion /usr/src/datafusion++COPY ./ballista-cli /usr/src/ballista-cli++COPY ./ballista /usr/src/ballista++WORKDIR /usr/src/ballista-cli++RUN rustup component add rustfmt++RUN cargo build --release++FROM debian:bullseye-slim++COPY --from=builder /usr/src/ballista-cli/target/release/ballista-cli /usr/local/bin++ENTRYPOINT ["ballista-cli"]++CMD ["--data-path", "/data"]diff --git a/ballista-cli/README.md b/ballista-cli/README.mdnew file mode 100644index 0000000000..733329e0cc--- /dev/null+++ b/ballista-cli/README.md@@ -0,0 +1,94 @@+<!---+ Licensed to the Apache Software Foundation (ASF) under one+ or more contributor license agreements. See the NOTICE file+ distributed with this work for additional information+ regarding copyright ownership. The ASF licenses this file+ to you under the Apache License, Version 2.0 (the+ "License"); you may not use this file except in compliance+ with the License. You may obtain a copy of the License at++ http://www.apache.org/licenses/LICENSE-2.0++ Unless required by applicable law or agreed to in writing,+ software distributed under the License is distributed on an+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY+ KIND, either express or implied. See the License for the+ specific language governing permissions and limitations+ under the License.+-->++# Ballista Command-line Interface++[Ballista](df) is a distributed query execution framework, written in Rust, that uses Apache Arrow as its in-memory format.++The Ballista CLI allows SQL queries to be executed by an in-process DataFusion context, or by a distributed+Ballista context.++```ignore+USAGE:+ ballista-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++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+```++## Example++Create a CSV file to query.++```bash,ignore+$ echo "1,2" > data.csv+```++```sql,ignore+$ ballista-cli++Ballista CLI v0.6.0++> CREATE EXTERNAL TABLE foo (a INT, b INT) STORED AS CSV LOCATION 'data.csv';+0 rows in set. Query took 0.001 seconds.++> SELECT * FROM foo;++---+---++| a | b |++---+---++| 1 | 2 |++---+---++1 row in set. Query took 0.017 seconds.+```++## Ballista-Cli++Build the `ballista-cli` without the feature of ballista.++```bash+cd arrow-datafusion/ballista-cli+cargo build+```++## Ballista++If you want to execute the SQL in ballista by `ballista-cli`, you must build/compile the `ballista-cli` with features of "ballista" first.++```bash+cd arrow-datafusion/ballista-cli+cargo build+```++The Ballista CLI can connect to a Ballista scheduler for query execution.++```bash+ballista-cli --host localhost --port 50050+```++[df]: https://crates.io/crates/datafusiondiff --git a/ballista-cli/src/command.rs b/ballista-cli/src/command.rsnew file mode 100644index 0000000000..0fd43a3071--- /dev/null+++ b/ballista-cli/src/command.rs@@ -0,0 +1,222 @@+// Licensed to the Apache Software Foundation (ASF) under one+// or more contributor license agreements. See the NOTICE file+// distributed with this work for additional information+// regarding copyright ownership. The ASF licenses this file+// to you under the Apache License, Version 2.0 (the+// "License"); you may not use this file except in compliance+// with the License. You may obtain a copy of the License at+//+// http://www.apache.org/licenses/LICENSE-2.0+//+// Unless required by applicable law or agreed to in writing,+// software distributed under the License is distributed on an+// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY+// KIND, either express or implied. See the License for the+// specific language governing permissions and limitations+// under the License.++//! Command within CLI++use crate::context::Context;+use crate::functions::{display_all_functions, Function};+use crate::print_format::PrintFormat;+use crate::print_options::PrintOptions;+use clap::ArgEnum;+use datafusion::arrow::array::{ArrayRef, StringArray};+use datafusion::arrow::datatypes::{DataType, Field, Schema};+use datafusion::arrow::record_batch::RecordBatch;+use datafusion::error::{DataFusionError, Result};+use std::str::FromStr;+use std::sync::Arc;+use std::time::Instant;++/// Command+#[derive(Debug)]+pub enum Command {+ Quit,+ Help,+ ListTables,+ DescribeTable(String),+ ListFunctions,+ SearchFunctions(String),+ QuietMode(Option<bool>),+ OutputFormat(Option<String>),+}++pub enum OutputFormat {+ ChangeFormat(String),+}++impl Command {+ pub async fn execute(+ &self,+ ctx: &mut Context,+ print_options: &mut PrintOptions,+ ) -> Result<()> {+ let now = Instant::now();+ match self {+ Self::Help => print_options+ .print_batches(&[all_commands_info()], now)+ .map_err(|e| DataFusionError::Execution(e.to_string())),+ Self::ListTables => {+ let df = ctx.sql("SHOW TABLES").await?;+ let batches = df.collect().await?;+ print_options+ .print_batches(&batches, now)+ .map_err(|e| DataFusionError::Execution(e.to_string()))+ }+ Self::DescribeTable(name) => {+ let df = ctx.sql(&format!("SHOW COLUMNS FROM {}", name)).await?;+ let batches = df.collect().await?;+ print_options+ .print_batches(&batches, now)+ .map_err(|e| DataFusionError::Execution(e.to_string()))+ }+ Self::QuietMode(quiet) => {+ if let Some(quiet) = quiet {+ print_options.quiet = *quiet;+ println!(+ "Quiet mode set to {}",+ if print_options.quiet { "true" } else { "false" }+ );+ } else {+ println!(+ "Quiet mode is {}",+ if print_options.quiet { "true" } else { "false" }+ );+ }+ Ok(())+ }+ Self::Quit => Err(DataFusionError::Execution(+ "Unexpected quit, this should be handled outside".into(),+ )),+ Self::ListFunctions => display_all_functions(),+ Self::SearchFunctions(function) => {+ if let Ok(func) = function.parse::<Function>() {+ let details = func.function_details()?;+ println!("{}", details);+ Ok(())+ } else {+ let msg = format!("{} is not a supported function", function);+ Err(DataFusionError::Execution(msg))+ }+ }+ Self::OutputFormat(_) => Err(DataFusionError::Execution(+ "Unexpected change output format, this should be handled outside".into(),+ )),+ }+ }++ fn get_name_and_description(&self) -> (&'static str, &'static str) {+ match self {+ Self::Quit => ("\\q", "quit datafusion-cli"),+ Self::ListTables => ("\\d", "list tables"),+ Self::DescribeTable(_) => ("\\d name", "describe table"),+ Self::Help => ("\\?", "help"),+ Self::ListFunctions => ("\\h", "function list"),+ Self::SearchFunctions(_) => ("\\h function", "search function"),+ Self::QuietMode(_) => ("\\quiet (true|false)?", "print or set quiet mode"),+ Self::OutputFormat(_) => {+ ("\\pset [NAME [VALUE]]", "set table output option\n(format)")+ }+ }+ }+}++const ALL_COMMANDS: [Command; 8] = [+ Command::ListTables,+ Command::DescribeTable(String::new()),+ Command::Quit,+ Command::Help,+ Command::ListFunctions,+ Command::SearchFunctions(String::new()),+ Command::QuietMode(None),+ Command::OutputFormat(None),+];++fn all_commands_info() -> RecordBatch {+ let schema = Arc::new(Schema::new(vec![+ Field::new("Command", DataType::Utf8, false),+ Field::new("Description", DataType::Utf8, false),+ ]));+ let (names, description): (Vec<&str>, Vec<&str>) = ALL_COMMANDS+ .into_iter()+ .map(|c| c.get_name_and_description())+ .unzip();+ RecordBatch::try_new(+ schema,+ [names, description]+ .into_iter()+ .map(|i| Arc::new(StringArray::from(i)) as ArrayRef)+ .collect::<Vec<_>>(),+ )+ .expect("This should not fail")+}++impl FromStr for Command {+ type Err = ();++ fn from_str(s: &str) -> std::result::Result<Self, Self::Err> {+ let (c, arg) = if let Some((a, b)) = s.split_once(' ') {+ (a, Some(b))+ } else {+ (s, None)+ };+ Ok(match (c, arg) {+ ("q", None) => Self::Quit,+ ("d", None) => Self::ListTables,+ ("d", Some(name)) => Self::DescribeTable(name.into()),+ ("?", None) => Self::Help,+ ("h", None) => Self::ListFunctions,+ ("h", Some(function)) => Self::SearchFunctions(function.into()),+ ("quiet", Some("true" | "t" | "yes" | "y" | "on")) => {+ Self::QuietMode(Some(true))+ }+ ("quiet", Some("false" | "f" | "no" | "n" | "off")) => {+ Self::QuietMode(Some(false))+ }+ ("quiet", None) => Self::QuietMode(None),+ ("pset", Some(subcommand)) => {+ Self::OutputFormat(Some(subcommand.to_string()))+ }+ ("pset", None) => Self::OutputFormat(None),+ _ => return Err(()),+ })+ }+}++impl FromStr for OutputFormat {+ type Err = ();++ fn from_str(s: &str) -> std::result::Result<Self, Self::Err> {+ let (c, arg) = if let Some((a, b)) = s.split_once(' ') {+ (a, Some(b))+ } else {+ (s, None)+ };+ Ok(match (c, arg) {+ ("format", Some(format)) => Self::ChangeFormat(format.to_string()),+ _ => return Err(()),+ })+ }+}++impl OutputFormat {+ pub async fn execute(&self, print_options: &mut PrintOptions) -> Result<()> {+ match self {+ Self::ChangeFormat(format) => {+ if let Ok(format) = format.parse::<PrintFormat>() {+ print_options.format = format;+ println!("Output format is {:?}.", print_options.format);+ Ok(())+ } else {+ Err(DataFusionError::Execution(format!(+ "{:?} is not a valid format type [possible values: {:?}]",+ format,+ PrintFormat::value_variants()+ )))+ }+ }+ }+ }+}diff --git a/ballista-cli/src/context.rs b/ballista-cli/src/context.rsnew file mode 100644index 0000000000..c96b0e7662--- /dev/null+++ b/ballista-cli/src/context.rs@@ -0,0 +1,90 @@+// Licensed to the Apache Software Foundation (ASF) under one+// or more contributor license agreements. See the NOTICE file+// distributed with this work for additional information+// regarding copyright ownership. The ASF licenses this file+// to you under the Apache License, Version 2.0 (the+// "License"); you may not use this file except in compliance+// with the License. You may obtain a copy of the License at+//+// http://www.apache.org/licenses/LICENSE-2.0+//+// Unless required by applicable law or agreed to in writing,+// software distributed under the License is distributed on an+// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY+// KIND, either express or implied. See the License for the+// specific language governing permissions and limitations+// under the License.++//! Context (remote or local)++use datafusion::dataframe::DataFrame;+use datafusion::error::{DataFusionError, Result};+use datafusion::execution::context::{SessionConfig, SessionContext};+use std::sync::Arc;++/// The CLI supports using a local DataFusion context or a distributed BallistaContext+pub enum Context {+ /// In-process execution with DataFusion+ Local(SessionContext),+ /// Distributed execution with Ballista (if available)+ Remote(BallistaContext),+}++impl Context {+ /// create a new remote context with given host and port+ pub async fn new_remote(host: &str, port: u16) -> Result<Context> {+ Ok(Context::Remote(BallistaContext::try_new(host, port).await?))+ }++ /// create a local context using the given config+ pub fn new_local(config: &SessionConfig) -> Context {+ Context::Local(SessionContext::with_config(config.clone()))+ }++ /// execute an SQL statement against the context+ pub async fn sql(&mut self, sql: &str) -> Result<Arc<DataFrame>> {+ match self {+ Context::Local(datafusion) => datafusion.sql(sql).await,+ Context::Remote(ballista) => ballista.sql(sql).await,+ }+ }+}++// implement wrappers around the BallistaContext to support running without ballista++#[cfg(feature = "ballista")]+pub struct BallistaContext(ballista::context::BallistaContext);+#[cfg(feature = "ballista")]+impl BallistaContext {+ pub async fn try_new(host: &str, port: u16) -> Result<Self> {+ use ballista::context::BallistaContext;+ use ballista::prelude::BallistaConfig;+ let builder =+ BallistaConfig::builder().set("ballista.with_information_schema", "true");+ let config = builder+ .build()+ .map_err(|e| DataFusionError::Execution(format!("{:?}", e)))?;+ let remote_ctx = BallistaContext::remote(host, port, &config)+ .await+ .map_err(|e| DataFusionError::Execution(format!("{:?}", e)))?;+ Ok(Self(remote_ctx))+ }+ pub async fn sql(&mut self, sql: &str) -> Result<Arc<DataFrame>> {+ self.0.sql(sql).await+ }+}++#[cfg(not(feature = "ballista"))]+pub struct BallistaContext();+#[cfg(not(feature = "ballista"))]+impl BallistaContext {+ pub async fn try_new(_host: &str, _port: u16) -> Result<Self> {+ Err(DataFusionError::NotImplemented(+ "Remote execution not supported. Compile with feature 'ballista' to enable"+ .to_string(),+ ))+ }+ pub async fn sql(&mut self, _sql: &str) -> Result<Arc<DataFrame>> {+ unreachable!()+ }+}diff --git a/ballista-cli/src/exec.rs b/ballista-cli/src/exec.rsnew file mode 100644index 0000000000..dc3c73e5ab--- /dev/null+++ b/ballista-cli/src/exec.rs@@ -0,0 +1,170 @@+// Licensed to the Apache Software Foundation (ASF) under one+// or more contributor license agreements. See the NOTICE file+// distributed with this work for additional information+// regarding copyright ownership. The ASF licenses this file+// to you under the Apache License, Version 2.0 (the+// "License"); you may not use this file except in compliance+// with the License. You may obtain a copy of the License at+//+// http://www.apache.org/licenses/LICENSE-2.0+//+// Unless required by applicable law or agreed to in writing,+// software distributed under the License is distributed on an+// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY+// KIND, either express or implied. See the License for the+// specific language governing permissions and limitations+// under the License.++//! Execution functions++use crate::{+ command::{Command, OutputFormat},+ context::Context,+ helper::CliHelper,+ print_options::PrintOptions,+};+use datafusion::error::Result;+use rustyline::error::ReadlineError;+use rustyline::Editor;+use std::fs::File;+use std::io::prelude::*;+use std::io::BufReader;+use std::time::Instant;++/// run and execute SQL statements and commands from a file, against a context with the given print options+pub async fn exec_from_lines(+ ctx: &mut Context,+ reader: &mut BufReader<File>,+ print_options: &PrintOptions,+) {+ let mut query = "".to_owned();++ for line in reader.lines() {+ match line {+ Ok(line) if line.starts_with("--") => {+ continue;+ }+ Ok(line) => {+ let line = line.trim_end();+ query.push_str(line);+ if line.ends_with(';') {+ match exec_and_print(ctx, print_options, query).await {+ Ok(_) => {}+ Err(err) => println!("{:?}", err),+ }+ query = "".to_owned();+ } else {+ query.push('\n');+ }+ }+ _ => {+ break;+ }+ }+ }++ // run the left over query if the last statement doesn't contain ‘;’+ if !query.is_empty() {+ match exec_and_print(ctx, print_options, query).await {+ Ok(_) => {}+ Err(err) => println!("{:?}", err),+ }+ }+}++pub async fn exec_from_files(+ files: Vec<String>,+ ctx: &mut Context,+ print_options: &PrintOptions,+) {+ let files = files+ .into_iter()+ .map(|file_path| File::open(file_path).unwrap())+ .collect::<Vec<_>>();+ for file in files {+ let mut reader = BufReader::new(file);+ exec_from_lines(ctx, &mut reader, print_options).await;+ }+}++/// run and execute SQL statements and commands against a context with the given print options+pub async fn exec_from_repl(ctx: &mut Context, print_options: &mut PrintOptions) {+ let mut rl = Editor::<CliHelper>::new();+ rl.set_helper(Some(CliHelper::default()));+ rl.load_history(".history").ok();++ let mut print_options = print_options.clone();++ loop {+ match rl.readline("❯ ") {+ Ok(line) if line.starts_with('\\') => {+ rl.add_history_entry(line.trim_end());+ let command = line.split_whitespace().collect::<Vec<_>>().join(" ");+ if let Ok(cmd) = &command[1..].parse::<Command>() {+ match cmd {+ Command::Quit => break,+ Command::OutputFormat(subcommand) => {+ if let Some(subcommand) = subcommand {+ if let Ok(command) = subcommand.parse::<OutputFormat>() {+ if let Err(e) =+ command.execute(&mut print_options).await+ {+ eprintln!("{}", e)+ }+ } else {+ eprintln!(+ "'\\{}' is not a valid command",+ &line[1..]+ );+ }+ } else {+ println!("Output format is {:?}.", print_options.format);+ }+ }+ _ => {+ if let Err(e) = cmd.execute(ctx, &mut print_options).await {+ eprintln!("{}", e)+ }+ }+ }+ } else {+ eprintln!("'\\{}' is not a valid command", &line[1..]);+ }+ }+ Ok(line) => {+ rl.add_history_entry(line.trim_end());+ match exec_and_print(ctx, &print_options, line).await {+ Ok(_) => {}+ Err(err) => eprintln!("{:?}", err),+ }+ }+ Err(ReadlineError::Interrupted) => {+ println!("^C");+ continue;+ }+ Err(ReadlineError::Eof) => {+ println!("\\q");+ break;+ }+ Err(err) => {+ eprintln!("Unknown error happened {:?}", err);+ break;+ }+ }+ }++ rl.save_history(".history").ok();+}++async fn exec_and_print(+ ctx: &mut Context,+ print_options: &PrintOptions,+ sql: String,+) -> Result<()> {+ let now = Instant::now();+ let df = ctx.sql(&sql).await?;+ let results = df.collect().await?;+ print_options.print_batches(&results, now)?;++ Ok(())+}diff --git a/ballista-cli/src/lib.rs b/ballista-cli/src/lib.rsnew file mode 100644index 0000000000..a51aad0136--- /dev/null+++ b/ballista-cli/src/lib.rs@@ -0,0 +1,25 @@+// Licensed to the Apache Software Foundation (ASF) under one+// or more contributor license agreements. See the NOTICE file+// distributed with this work for additional information+// regarding copyright ownership. The ASF licenses this file+// to you under the Apache License, Version 2.0 (the+// "License"); you may not use this file except in compliance+// with the License. You may obtain a copy of the License at+//+// http://www.apache.org/licenses/LICENSE-2.0+//+// Unless required by applicable law or agreed to in writing,+// software distributed under the License is distributed on an+// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY+// KIND, either express or implied. See the License for the+// specific language governing permissions and limitations+// under the License.++#![doc = include_str!("../README.md")]+pub const BALLISTA_CLI_VERSION: &str = env!("CARGO_PKG_VERSION");++pub mod command;+pub mod context;+pub mod exec;++pub use datafusion_cli::{helper, print_format, print_options, functions};diff --git a/ballista-cli/src/main.rs b/ballista-cli/src/main.rsnew file mode 100644index 0000000000..69868091de--- /dev/null+++ b/ballista-cli/src/main.rs@@ -0,0 +1,165 @@+// Licensed to the Apache Software Foundation (ASF) under one+// or more contributor license agreements. See the NOTICE file+// distributed with this work for additional information+// regarding copyright ownership. The ASF licenses this file+// to you under the Apache License, Version 2.0 (the+// "License"); you may not use this file except in compliance+// with the License. You may obtain a copy of the License at+//+// http://www.apache.org/licenses/LICENSE-2.0+//+// Unless required by applicable law or agreed to in writing,+// software distributed under the License is distributed on an+// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY+// KIND, either express or implied. See the License for the+// specific language governing permissions and limitations+// under the License.++use ballista_cli::{+ context::Context, exec, print_format::PrintFormat, print_options::PrintOptions,+ BALLISTA_CLI_VERSION,+};+use clap::Parser;+use datafusion::error::Result;+use datafusion::execution::context::SessionConfig;+use mimalloc::MiMalloc;+use std::env;+use std::path::Path;++#[global_allocator]+static GLOBAL: MiMalloc = MiMalloc;++#[derive(Debug, Parser, PartialEq)]+#[clap(author, version, about, long_about= None)]+struct Args {+ #[clap(+ short = 'p',+ long,+ help = "Path to your data, default to current directory",+ validator(is_valid_data_dir)+ )]+ data_path: Option<String>,++ #[clap(+ short = 'c',+ long,+ help = "The batch size of each query, or use DataFusion default",+ validator(is_valid_batch_size)+ )]+ batch_size: Option<usize>,++ #[clap(+ short,+ long,+ multiple_values = true,+ help = "Execute commands from file(s), then exit",+ validator(is_valid_file)+ )]+ file: Vec<String>,++ #[clap(+ short = 'r',+ long,+ multiple_values = true,+ help = "Run the provided files on startup instead of ~/.datafusionrc",+ validator(is_valid_file),+ conflicts_with = "file"+ )]+ rc: Option<Vec<String>>,++ #[clap(long, arg_enum, default_value_t = PrintFormat::Table)]+ format: PrintFormat,++ #[clap(long, help = "Ballista scheduler host")]+ host: Option<String>,++ #[clap(long, help = "Ballista scheduler port")]+ port: Option<u16>,++ #[clap(+ short,+ long,+ help = "Reduce printing other than the results and work quietly"+ )]+ quiet: bool,+}++#[tokio::main]+pub async fn main() -> Result<()> {+ env_logger::init();+ let args = Args::parse();++ if !args.quiet {+ println!("Ballista CLI v{}", BALLISTA_CLI_VERSION);+ }++ if let Some(ref path) = args.data_path {+ let p = Path::new(path);+ env::set_current_dir(&p).unwrap();+ };++ let mut session_config = SessionConfig::new().with_information_schema(true);++ if let Some(batch_size) = args.batch_size {+ session_config = session_config.with_batch_size(batch_size);+ };++ let mut ctx: Context = match (args.host, args.port) {+ (Some(ref h), Some(p)) => Context::new_remote(h, p).await?,+ _ => Context::new_local(&session_config),+ };++ let mut print_options = PrintOptions {+ format: args.format,+ quiet: args.quiet,+ };++ let files = args.file;+ let rc = match args.rc {+ Some(file) => file,+ None => {+ let mut files = Vec::new();+ let home = dirs::home_dir();+ if let Some(p) = home {+ let home_rc = p.join(".datafusionrc");+ if home_rc.exists() {+ files.push(home_rc.into_os_string().into_string().unwrap());+ }+ }+ files+ }+ };+ if !files.is_empty() {+ exec::exec_from_files(files, &mut ctx, &print_options).await+ } else {+ if !rc.is_empty() {+ exec::exec_from_files(rc, &mut ctx, &print_options).await+ }+ exec::exec_from_repl(&mut ctx, &mut print_options).await;+ }++ Ok(())+}++fn is_valid_file(dir: &str) -> std::result::Result<(), String> {+ if Path::new(dir).is_file() {+ Ok(())+ } else {+ Err(format!("Invalid file '{}'", dir))+ }+}++fn is_valid_data_dir(dir: &str) -> std::result::Result<(), String> {+ if Path::new(dir).is_dir() {+ Ok(())+ } else {+ Err(format!("Invalid data directory '{}'", dir))+ }+}++fn is_valid_batch_size(size: &str) -> std::result::Result<(), String> {+ match size.parse::<usize>() {+ Ok(size) if size > 0 => Ok(()),+ _ => Err(format!("Invalid batch size '{}'", size)),+ }+}diff --git a/datafusion-cli/Cargo.lock b/datafusion-cli/Cargo.lockindex 9a84e35c23..4309a4216b 100644--- a/datafusion-cli/Cargo.lock+++ b/datafusion-cli/Cargo.lock@@ -43,12 +43,6 @@ dependencies = ["alloc-no-stdlib",]-[[package]]-name = "anyhow"-version = "1.0.57"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "08f9b8508dccb7687a1d6c4ce66b2b0ecef467c94667de27d8d7fe1f8d2a9cdc"-[[package]]name = "arrayref"version = "0.3.6"@@ -86,45 +80,6 @@ dependencies = ["serde_json",]-[[package]]-name = "arrow-flight"-version = "13.0.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "0a3666d2dbc637fa979d1f0bf3031d39a80e709f3b9ec88e3d573c1d666bf553"-dependencies = [- "arrow",- "base64",- "bytes",- "futures",- "proc-macro2",- "prost",- "prost-derive",- "tokio",- "tonic",- "tonic-build",-]--[[package]]-name = "async-stream"-version = "0.3.3"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "dad5c83079eae9969be7fadefe640a1c566901f05ff91ab221de4b6f68d9507e"-dependencies = [- "async-stream-impl",- "futures-core",-]--[[package]]-name = "async-stream-impl"-version = "0.3.3"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "10f203db73a71dfa2fb6dd22763990fa26f3d2625a6da2da900d23b87d26be27"-dependencies = [- "proc-macro2",- "quote",- "syn",-]-[[package]]name = "async-trait"version = "0.1.53"@@ -153,93 +108,6 @@ version = "1.1.0"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "d468802bab17cbc0cc575e9b053f41e72aa36bfa6b7f55e3529ffa43161b97fa"-[[package]]-name = "axum"-version = "0.5.5"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "00f1e8a972137fad81e2a1a60b86ff17ce0338f8017264e45a9723d0083c39a1"-dependencies = [- "async-trait",- "axum-core",- "bitflags",- "bytes",- "futures-util",- "http",- "http-body",- "hyper",- "itoa 1.0.1",- "matchit",- "memchr",- "mime",- "percent-encoding",- "pin-project-lite",- "serde",- "sync_wrapper",- "tokio",- "tower",- "tower-http",- "tower-layer",- "tower-service",-]--[[package]]-name = "axum-core"-version = "0.2.4"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "da31c0ed7b4690e2c78fe4b880d21cd7db04a346ebc658b4270251b695437f17"-dependencies = [- "async-trait",- "bytes",- "futures-util",- "http",- "http-body",- "mime",-]--[[package]]-name = "ballista"-version = "0.6.0"-dependencies = [- "ballista-core",- "datafusion",- "futures",- "log",- "parking_lot",- "sqlparser 0.16.0",- "tempfile",- "tokio",-]--[[package]]-name = "ballista-core"-version = "0.6.0"-dependencies = [- "ahash",- "arrow-flight",- "async-trait",- "chrono",- "clap",- "datafusion",- "datafusion-proto",- "futures",- "hashbrown 0.12.1",- "libloading",- "log",- "once_cell",- "parking_lot",- "parse_arg",- "prost",- "prost-types",- "rustc_version",- "serde",- "sqlparser 0.16.0",- "tokio",- "tonic",- "tonic-build",- "uuid",- "walkdir",-]-[[package]]name = "base64"version = "0.13.0"@@ -323,12 +191,6 @@ version = "1.4.3"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "14c189c53d098945499cdfa7ecc63567cf3886b3332b312a5b4585d8d3a6a610"-[[package]]-name = "bytes"-version = "1.1.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "c4872d67bab6358e59559027aa3b9157c53d9358c51423c17554809a8858e0f8"-[[package]]name = "cc"version = "1.0.73"@@ -358,9 +220,9 @@ dependencies = [[[package]]name = "clap"-version = "3.1.17"+version = "3.1.18"source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "47582c09be7c8b32c0ab3a6181825ababb713fde6fff20fc573a3870dd45c6a0"+checksum = "d2dbdf4bdacb33466e854ce889eee8dfd5729abf7ccd7664d0a2d60cd384440b"dependencies = ["atty","bitflags",@@ -375,9 +237,9 @@ dependencies = [[[package]]name = "clap_derive"-version = "3.1.7"+version = "3.1.18"source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "a3aab4734e083b809aaf5794e14e756d1c798d2c69c7f7de7a09a2f5214993c1"+checksum = "25320346e922cffe59c0bbc5410c8d8784509efb321488971081313cb1e1a33c"dependencies = ["heck 0.4.0","proc-macro-error",@@ -406,15 +268,6 @@ dependencies = ["winapi",]-[[package]]-name = "cmake"-version = "0.1.48"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "e8ad8cef104ac57b68b89df3208164d228503abbdce70f6880ffa3d970e7443a"-dependencies = [- "cc",-]-[[package]]name = "comfy-table"version = "5.0.1"@@ -507,7 +360,7 @@ dependencies = ["pin-project-lite","rand","smallvec",- "sqlparser 0.17.0",+ "sqlparser","tempfile","tokio","tokio-stream",@@ -519,7 +372,6 @@ name = "datafusion-cli"version = "7.0.0"dependencies = ["arrow",- "ballista","clap","datafusion","dirs",@@ -536,12 +388,12 @@ dependencies = ["arrow","ordered-float 3.0.0","parquet",- "sqlparser 0.17.0",+ "sqlparser",][[package]]name = "datafusion-data-access"-version = "1.0.0"+version = "7.0.0"dependencies = ["async-trait","chrono",@@ -559,7 +411,7 @@ dependencies = ["ahash","arrow","datafusion-common",- "sqlparser 0.17.0",+ "sqlparser",][[package]]@@ -585,15 +437,6 @@ dependencies = ["unicode-segmentation",]-[[package]]-name = "datafusion-proto"-version = "7.0.0"-dependencies = [- "datafusion",- "prost",- "tonic-build",-]-[[package]]name = "datafusion-row"version = "7.0.0"@@ -656,12 +499,6 @@ dependencies = ["winapi",]-[[package]]-name = "either"-version = "1.6.1"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "e78d4f1cc4ae33bbfc157ed5d5a5ef3bc29227303d595861deb238fcec4e9457"-[[package]]name = "endian-type"version = "0.1.2"@@ -732,12 +569,6 @@ dependencies = ["windows-sys 0.30.0",]-[[package]]-name = "fixedbitset"-version = "0.4.1"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "279fb028e20b3c4c320317955b77c5e0c9701f05a1d309905d6fc702cdc5053e"-[[package]]name = "flatbuffers"version = "2.1.2"@@ -761,12 +592,6 @@ dependencies = ["miniz_oxide",]-[[package]]-name = "fnv"-version = "1.0.7"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "3f9eec918d3f24069decb9af1554cad7c880e2da24a9afd88aca000531ab82c1"-[[package]]name = "futures"version = "0.3.21"@@ -874,7 +699,7 @@ checksum = "9be70c98951c83b8d2f8f60d7065fa6d5146873094452a1008da8c2f1e4205ad"dependencies = ["cfg-if","libc",- "wasi 0.10.2+wasi-snapshot-preview1",+ "wasi",][[package]]@@ -883,25 +708,6 @@ version = "0.3.0"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "9b919933a397b79c37e33b77bb2aa3dc8eb6e165ad809e58ff75bc7db2e34574"-[[package]]-name = "h2"-version = "0.3.13"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "37a82c6d637fc9515a4694bbf1cb2457b79d81ce52b3108bdeea58b07dd34a57"-dependencies = [- "bytes",- "fnv",- "futures-core",- "futures-sink",- "futures-util",- "http",- "indexmap",- "slab",- "tokio",- "tokio-util",- "tracing",-]-[[package]]name = "half"version = "1.8.2"@@ -953,88 +759,12 @@ version = "0.4.3"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "7f24254aa9a54b5c858eaee2f5bccdb46aaf0e486a595ed5fd8f86ba55232a70"-[[package]]-name = "http"-version = "0.2.7"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "ff8670570af52249509a86f5e3e18a08c60b177071826898fde8997cf5f6bfbb"-dependencies = [- "bytes",- "fnv",- "itoa 1.0.1",-]--[[package]]-name = "http-body"-version = "0.4.4"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "1ff4f84919677303da5f147645dbea6b1881f368d03ac84e1dc09031ebd7b2c6"-dependencies = [- "bytes",- "http",- "pin-project-lite",-]--[[package]]-name = "http-range-header"-version = "0.3.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "0bfe8eed0a9285ef776bb792479ea3834e8b94e13d615c2f66d03dd50a435a29"--[[package]]-name = "httparse"-version = "1.7.1"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "496ce29bb5a52785b44e0f7ca2847ae0bb839c9bd28f69acac9b99d461c0c04c"--[[package]]-name = "httpdate"-version = "1.0.2"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "c4a1e36c821dbe04574f602848a19f742f4fb3c98d40449f11bcad18d6b17421"-[[package]]name = "humantime"version = "2.1.0"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "9a3a5bfb195931eeb336b2a7b4d761daec841b97f947d34394601737a7bba5e4"-[[package]]-name = "hyper"-version = "0.14.18"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "b26ae0a80afebe130861d90abf98e3814a4f28a4c6ffeb5ab8ebb2be311e0ef2"-dependencies = [- "bytes",- "futures-channel",- "futures-core",- "futures-util",- "h2",- "http",- "http-body",- "httparse",- "httpdate",- "itoa 1.0.1",- "pin-project-lite",- "socket2",- "tokio",- "tower-service",- "tracing",- "want",-]--[[package]]-name = "hyper-timeout"-version = "0.4.1"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "bbb958482e8c7be4bc3cf272a766a2b0bf1a6755e7a6ae777f017a31d11b13b1"-dependencies = [- "hyper",- "pin-project-lite",- "tokio",- "tokio-io-timeout",-]-[[package]]name = "indexmap"version = "1.8.1"@@ -1066,15 +796,6 @@ version = "0.6.1"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "9448015e586b611e5d322f6703812bbca2f1e709d5773ecd38ddb4e3bb649504"-[[package]]-name = "itertools"-version = "0.10.3"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "a9a9d19fa1e79b6215ff29b9d6880b706147f16e9b1dbb1e4e5947b5b02bc5e3"-dependencies = [- "either",-]-[[package]]name = "itoa"version = "0.4.8"@@ -1172,16 +893,6 @@ version = "0.2.125"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "5916d2ae698f6de9bfb891ad7a8d65c09d232dc58cc4ac433c7da3b2fd84bc2b"-[[package]]-name = "libloading"-version = "0.7.3"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "efbc0f03f9a775e9f6aed295c6a1ba2253c5757a9e03d55c6caa46a681abcddd"-dependencies = [- "cfg-if",- "winapi",-]-[[package]]name = "libmimalloc-sys"version = "0.1.25"@@ -1236,12 +947,6 @@ dependencies = ["libc",]-[[package]]-name = "matchit"-version = "0.5.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "73cbba799671b762df5a175adf59ce145165747bb891505c43d09aefbbf38beb"-[[package]]name = "md-5"version = "0.10.1"@@ -1275,12 +980,6 @@ dependencies = ["libmimalloc-sys",]-[[package]]-name = "mime"-version = "0.3.16"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "2a60c7ce501c71e03a9c9c0d35b861413ae925bd979cc7a4e30d060069aaac8d"-[[package]]name = "miniz_oxide"version = "0.5.1"@@ -1290,24 +989,6 @@ dependencies = ["adler",]-[[package]]-name = "mio"-version = "0.8.3"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "713d550d9b44d89174e066b7a6217ae06234c10cb47819a88290d2b353c31799"-dependencies = [- "libc",- "log",- "wasi 0.11.0+wasi-snapshot-preview1",- "windows-sys 0.36.1",-]--[[package]]-name = "multimap"-version = "0.8.3"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "e5ce46fe64a9d73be07dcbe690a38ce1b293be448fd8ce1e6c1b8062c9f72c6a"-[[package]]name = "multiversion"version = "0.6.1"@@ -1520,54 +1201,12 @@ dependencies = ["thrift",]-[[package]]-name = "parse_arg"-version = "0.1.4"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "14248cc8eced350e20122a291613de29e4fa129ba2731818c4cdbb44fccd3e55"-[[package]]name = "paste"version = "1.0.7"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "0c520e05135d6e763148b6426a837e239041653ba7becd2e538c076c738025fc"-[[package]]-name = "percent-encoding"-version = "2.1.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "d4fd5641d01c8f18a23da7b6fe29298ff4b55afcccdf78973b24cf3175fee32e"--[[package]]-name = "petgraph"-version = "0.6.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "4a13a2fa9d0b63e5f22328828741e523766fff0ee9e779316902290dff3f824f"-dependencies = [- "fixedbitset",- "indexmap",-]--[[package]]-name = "pin-project"-version = "1.0.10"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "58ad3879ad3baf4e44784bc6a718a8698867bb991f8ce24d1bcbe2cfb4c3a75e"-dependencies = [- "pin-project-internal",-]--[[package]]-name = "pin-project-internal"-version = "1.0.10"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "744b6f092ba29c3650faf274db506afd39944f48420f6c86b17cfe0ee1cb36bb"-dependencies = [- "proc-macro2",- "quote",- "syn",-]-[[package]]name = "pin-project-lite"version = "0.2.9"@@ -1586,16 +1225,6 @@ version = "0.2.16"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "eb9f9e6e233e5c4a35559a617bf40a4ec447db2e84c20b55a6f83167b7e57872"-[[package]]-name = "prettyplease"-version = "0.1.10"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "d9e07e3a46d0771a8a06b5f4441527802830b43e679ba12f44960f48dd4c6803"-dependencies = [- "proc-macro2",- "syn",-]-[[package]]name = "proc-macro-error"version = "1.0.4"@@ -1629,61 +1258,6 @@ dependencies = ["unicode-xid",]-[[package]]-name = "prost"-version = "0.10.3"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "bc03e116981ff7d8da8e5c220e374587b98d294af7ba7dd7fda761158f00086f"-dependencies = [- "bytes",- "prost-derive",-]--[[package]]-name = "prost-build"-version = "0.10.3"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "65a1118354442de7feb8a2a76f3d80ef01426bd45542c8c1fdffca41a758f846"-dependencies = [- "bytes",- "cfg-if",- "cmake",- "heck 0.4.0",- "itertools",- "lazy_static",- "log",- "multimap",- "petgraph",- "prost",- "prost-types",- "regex",- "tempfile",- "which",-]--[[package]]-name = "prost-derive"-version = "0.10.1"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "7b670f45da57fb8542ebdbb6105a925fe571b67f9e7ed9f47a06a84e72b4e7cc"-dependencies = [- "anyhow",- "itertools",- "proc-macro2",- "quote",- "syn",-]--[[package]]-name = "prost-types"-version = "0.10.1"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "2d0a014229361011dc8e69c8a1ec6c2e8d0f2af7c91e3ea3f5b2170298461e68"-dependencies = [- "bytes",- "prost",-]-[[package]]name = "quote"version = "1.0.18"@@ -1785,15 +1359,6 @@ dependencies = ["winapi",]-[[package]]-name = "rustc_version"-version = "0.4.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "bfa0f585226d2e68097d4f95d113b15b83a82e819ab25717ec0590d9584ef366"-dependencies = [- "semver",-]-[[package]]name = "rustix"version = "0.34.6"@@ -1844,35 +1409,17 @@ version = "1.0.9"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "73b4b750c782965c211b42f022f59af1fbceabdd026623714f104152f1ec149f"-[[package]]-name = "same-file"-version = "1.0.6"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "93fc1dc3aaa9bfed95e02e6eadabb4baf7e3078b0bd1b4d7b6b0b68378900502"-dependencies = [- "winapi-util",-]-[[package]]name = "scopeguard"version = "1.1.0"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "d29ab0c6d3fc0ee92fe66e2d99f700eab17a8d57d1c1d3b748380fb20baa78cd"-[[package]]-name = "semver"-version = "1.0.9"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "8cb243bdfdb5936c8dc3c45762a19d12ab4550cdc753bc247637d4ec35a040fd"-[[package]]name = "serde"version = "1.0.137"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "61ea8d54c77f8315140a05f4c7237403bf38b72704d031543aa1d16abbf517d1"-dependencies = [- "serde_derive",-][[package]]name = "serde_derive"@@ -1926,25 +1473,6 @@ version = "1.0.5"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "45456094d1983e2ee2a18fdfebce3189fa451699d0502cb8e3b49dba5ba41451"-[[package]]-name = "socket2"-version = "0.4.4"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "66d72b759436ae32898a2af0a14218dbf55efde3feeb170eb623637db85ee1e0"-dependencies = [- "libc",- "winapi",-]--[[package]]-name = "sqlparser"-version = "0.16.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "7e9a527b68048eb95495a1508f6c8395c8defcff5ecdbe8ad4106d08a2ef2a3c"-dependencies = [- "log",-]-[[package]]name = "sqlparser"version = "0.17.0"@@ -2008,12 +1536,6 @@ dependencies = ["unicode-xid",]-[[package]]-name = "sync_wrapper"-version = "0.1.1"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "20518fe4a4c9acf048008599e464deb21beeae3d3578418951a189c235a7a9a8"-[[package]]name = "tempfile"version = "3.3.0"@@ -2091,27 +1613,11 @@ version = "1.18.2"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "4903bf0427cf68dddd5aa6a93220756f8be0c34fcfa9f5e6191e103e15a31395"dependencies = [- "bytes",- "libc",- "memchr",- "mio","num_cpus","once_cell","parking_lot","pin-project-lite",- "socket2","tokio-macros",- "winapi",-]--[[package]]-name = "tokio-io-timeout"-version = "1.2.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "30b74022ada614a1b4834de765f9bb43877f910cc8ce4be40e89042c9223a8bf"-dependencies = [- "pin-project-lite",- "tokio",][[package]]@@ -2136,165 +1642,6 @@ dependencies = ["tokio",]-[[package]]-name = "tokio-util"-version = "0.7.1"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "0edfdeb067411dba2044da6d1cb2df793dd35add7888d73c16e3381ded401764"-dependencies = [- "bytes",- "futures-core",- "futures-sink",- "pin-project-lite",- "tokio",- "tracing",-]--[[package]]-name = "tonic"-version = "0.7.2"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "5be9d60db39854b30b835107500cf0aca0b0d14d6e1c3de124217c23a29c2ddb"-dependencies = [- "async-stream",- "async-trait",- "axum",- "base64",- "bytes",- "futures-core",- "futures-util",- "h2",- "http",- "http-body",- "hyper",- "hyper-timeout",- "percent-encoding",- "pin-project",- "prost",- "prost-derive",- "tokio",- "tokio-stream",- "tokio-util",- "tower",- "tower-layer",- "tower-service",- "tracing",- "tracing-futures",-]--[[package]]-name = "tonic-build"-version = "0.7.2"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "d9263bf4c9bfaae7317c1c2faf7f18491d2fe476f70c414b73bf5d445b00ffa1"-dependencies = [- "prettyplease",- "proc-macro2",- "prost-build",- "quote",- "syn",-]--[[package]]-name = "tower"-version = "0.4.12"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "9a89fd63ad6adf737582df5db40d286574513c69a11dac5214dc3b5603d6713e"-dependencies = [- "futures-core",- "futures-util",- "indexmap",- "pin-project",- "pin-project-lite",- "rand",- "slab",- "tokio",- "tokio-util",- "tower-layer",- "tower-service",- "tracing",-]--[[package]]-name = "tower-http"-version = "0.3.3"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "7d342c6d58709c0a6d48d48dabbb62d4ef955cf5f0f3bbfd845838e7ae88dbae"-dependencies = [- "bitflags",- "bytes",- "futures-core",- "futures-util",- "http",- "http-body",- "http-range-header",- "pin-project-lite",- "tower",- "tower-layer",- "tower-service",-]--[[package]]-name = "tower-layer"-version = "0.3.1"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "343bc9466d3fe6b0f960ef45960509f84480bf4fd96f92901afe7ff3df9d3a62"--[[package]]-name = "tower-service"-version = "0.3.1"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "360dfd1d6d30e05fda32ace2c8c70e9c0a9da713275777f5a4dbb8a1893930c6"--[[package]]-name = "tracing"-version = "0.1.34"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "5d0ecdcb44a79f0fe9844f0c4f33a342cbcbb5117de8001e6ba0dc2351327d09"-dependencies = [- "cfg-if",- "log",- "pin-project-lite",- "tracing-attributes",- "tracing-core",-]--[[package]]-name = "tracing-attributes"-version = "0.1.21"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "cc6b8ad3567499f98a1db7a752b07a7c8c7c7c34c332ec00effb2b0027974b7c"-dependencies = [- "proc-macro2",- "quote",- "syn",-]--[[package]]-name = "tracing-core"-version = "0.1.26"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "f54c8ca710e81886d498c2fd3331b56c93aa248d49de2222ad2742247c60072f"-dependencies = [- "lazy_static",-]--[[package]]-name = "tracing-futures"-version = "0.2.5"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "97d095ae15e245a057c8e8451bab9b3ee1e1f68e9ba2b4fbc18d0ac5237835f2"-dependencies = [- "pin-project",- "tracing",-]--[[package]]-name = "try-lock"-version = "0.2.3"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "59547bce71d9c38b83d9c0e92b6066c4253371f15005def0c30d9657f50c7642"-[[package]]name = "typenum"version = "1.15.0"@@ -2340,50 +1687,12 @@ version = "0.9.4"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "49874b5167b65d7193b8aba1567f5c7d93d001cafc34600cee003eda787e483f"-[[package]]-name = "walkdir"-version = "2.3.2"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "808cf2735cd4b6866113f648b791c6adc5714537bc222d9347bb203386ffda56"-dependencies = [- "same-file",- "winapi",- "winapi-util",-]--[[package]]-name = "want"-version = "0.3.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "1ce8a968cb1cd110d136ff8b819a556d6fb6d919363c61534f6860c7eb172ba0"-dependencies = [- "log",- "try-lock",-]-[[package]]name = "wasi"version = "0.10.2+wasi-snapshot-preview1"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "fd6fbd9a79829dd1ad0cc20627bf1ed606756a7f77edff7b66b7064f9cb327c6"-[[package]]-name = "wasi"-version = "0.11.0+wasi-snapshot-preview1"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "9c8d87e72b64a3b4db28d11ce29237c246188f4f51057d65a7eab63b7987e423"--[[package]]-name = "which"-version = "4.2.5"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "5c4fb54e6113b6a8772ee41c3404fb0301ac79604489467e0a9ce1f3e97c24ae"-dependencies = [- "either",- "lazy_static",- "libc",-]-[[package]]name = "winapi"version = "0.3.9"diff --git a/datafusion-cli/Cargo.toml b/datafusion-cli/Cargo.tomlindex 0f0deb3f07..08dc44fe7c 100644--- a/datafusion-cli/Cargo.toml+++ b/datafusion-cli/Cargo.toml@@ -17,7 +17,7 @@[package]name = "datafusion-cli"-description = "Command Line Client for DataFusion query engine and Ballista distributed computation engine."+description = "Command Line Client for DataFusion query engine."version = "7.0.0"authors = ["Apache Arrow <[email protected]>"]edition = "2021"@@ -30,7 +30,6 @@ readme = "README.md"[dependencies]arrow = { version = "13" }-ballista = { path = "../ballista/rust/client", version = "0.6.0", optional = true }clap = { version = "3", features = ["derive", "cargo"] }datafusion = { path = "../datafusion/core", version = "7.0.0" }dirs = "4.0.0"diff --git a/datafusion-cli/README.md b/datafusion-cli/README.mdindex 5c72f16a45..2b21aa2b80 100644--- a/datafusion-cli/README.md+++ b/datafusion-cli/README.md@@ -53,7 +53,7 @@ $ echo "1,2" > data.csv```sql,ignore$ datafusion-cli-DataFusion CLI v4.0.0-SNAPSHOT+DataFusion CLI v7.0.0> CREATE EXTERNAL TABLE foo (a INT, b INT) STORED AS CSV LOCATION 'data.csv';0 rows in set. Query took 0.001 seconds.diff --git a/datafusion-cli/src/context.rs b/datafusion-cli/src/context.rsindex c96b0e7662..8645a74d5a 100644--- a/datafusion-cli/src/context.rs+++ b/datafusion-cli/src/context.rs@@ -31,11 +31,6 @@ pub enum Context {}impl Context {- /// create a new remote context with given host and port- pub async fn new_remote(host: &str, port: u16) -> Result<Context> {- Ok(Context::Remote(BallistaContext::try_new(host, port).await?))- }-/// create a local context using the given configpub fn new_local(config: &SessionConfig) -> Context {Context::Local(SessionContext::with_config(config.clone()))diff --git a/datafusion-cli/src/helper.rs b/datafusion-cli/src/helper.rsindex e229255f56..42eeb83f86 100644--- a/datafusion-cli/src/helper.rs+++ b/datafusion-cli/src/helper.rs@@ -33,7 +33,7 @@ use rustyline::Helper;use rustyline::Result;#[derive(Default)]-pub(crate) struct CliHelper {+pub struct CliHelper {completer: FilenameCompleter,}diff --git a/datafusion-cli/src/main.rs b/datafusion-cli/src/main.rsindex d76fe38e5f..0702ff4479 100644--- a/datafusion-cli/src/main.rs+++ b/datafusion-cli/src/main.rs@@ -70,12 +70,6 @@ struct Args {#[clap(long, arg_enum, default_value_t = PrintFormat::Table)]format: PrintFormat,- #[clap(long, help = "Ballista scheduler host")]- host: Option<String>,-- #[clap(long, help = "Ballista scheduler port")]- port: Option<u16>,-#[clap(short,long,@@ -104,10 +98,7 @@ pub async fn main() -> Result<()> {session_config = session_config.with_batch_size(batch_size);};- let mut ctx: Context = match (args.host, args.port) {- (Some(ref h), Some(p)) => Context::new_remote(h, p).await?,- _ => Context::new_local(&session_config),- };+ let mut ctx: Context = Context::new_local(&session_config);let mut print_options = PrintOptions {format: args.format,diff --git a/dev/docker/ballista.dockerfile b/dev/docker/ballista.dockerfileindex 7fdb0d4bc1..dac756633c 100644--- a/dev/docker/ballista.dockerfile+++ b/dev/docker/ballista.dockerfile@@ -30,6 +30,7 @@ RUN cargo install cargo-chef --version 0.1.34FROM base as plannerADD Cargo.toml .COPY ballista ./ballista/+COPY ballista-cli ./ballista-cli/COPY ballista-examples ./ballista-examples/COPY benchmarks ./benchmarks/COPY datafusion ./datafusion/@@ -43,6 +44,7 @@ RUN cargo chef cook $RELEASE_FLAG --recipe-path recipe.jsonFROM base as builderRUN mkdir /tmp/ballista/ballista+RUN mkdir /tmp/ballista/ballista-cliRUN mkdir /tmp/ballista/ballista-examplesRUN mkdir /tmp/ballista/benchmarksRUN mkdir /tmp/ballista/datafusion@@ -50,6 +52,7 @@ RUN mkdir /tmp/ballista/datafusion-cliRUN mkdir /tmp/ballista/datafusion-examplesADD Cargo.toml .COPY ballista ./ballista/+COPY ballista-cli ./ballista-cli/COPY ballista-examples ./ballista-examples/COPY benchmarks ./benchmarks/COPY datafusion ./datafusion/diff --git a/dev/release/README.md b/dev/release/README.mdindex d6f481ebf3..6437353dc1 100644--- a/dev/release/README.md+++ b/dev/release/README.md@@ -285,6 +285,7 @@ of the following crates:- [datafusion-proto](https://crates.io/crates/datafusion-proto)- [datafusion-row](https://crates.io/crates/datafusion-row)- [ballista](https://crates.io/crates/ballista)+- [ballista-cli](https://crates.io/crates/ballista-cli)- [ballista-core](https://crates.io/crates/ballista-core)- [ballista-executor](https://crates.io/crates/ballista-executor)- [ballista-scheduler](https://crates.io/crates/ballista-scheduler)@@ -315,9 +316,6 @@ dot -Tsvg dev/release/crate-deps.dot > dev/release/crate-deps.svg(cd datafusion-cli && cargo publish)```-Note that `datafusion-cli` will depend on the previously published version of Ballista (which depends on the-previously published version of DataFusion) until https://github.com/apache/arrow-datafusion/issues/2433 is resolved.-If there is a ballista release, run```shell@@ -325,6 +323,7 @@ If there is a ballista release, run(cd ballista/rust/executor && cargo publish)(cd ballista/rust/scheduler && cargo publish)(cd ballista/rust/client && cargo publish)+(cd ballista-cli && cargo publish)```### Publish datafusion-cli on Homebrew and crates.iodiff --git a/dev/release/crate-deps.dot b/dev/release/crate-deps.dotindex fd292fa2da..5176814e35 100644--- a/dev/release/crate-deps.dot+++ b/dev/release/crate-deps.dot@@ -56,6 +56,9 @@ digraph G {ballista -> ballista_executordatafusion_cli -> datafusion- datafusion_cli -> ballista++ ballista_cli -> datafusion+ ballista_cli -> datafusion_cli+ ballista_cli -> ballista}diff --git a/dev/release/crate-deps.svg b/dev/release/crate-deps.svgindex c41cd0aa7e..eb98a00ce9 100644--- a/dev/release/crate-deps.svg+++ b/dev/release/crate-deps.svg@@ -1,247 +1,265 @@<?xml version="1.0" encoding="UTF-8" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN""http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">-<!-- Generated by graphviz version 3.0.0 (20220226.1711)+<!-- Generated by graphviz version 2.43.0 (0)--><!-- Title: G Pages: 1 -->-<svg width="678pt" height="692pt"- viewBox="0.00 0.00 677.68 692.00" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">+<svg width="812pt" height="692pt"+ viewBox="0.00 0.00 812.33 692.00" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><g id="graph0" class="graph" transform="scale(1 1) rotate(0) translate(4 688)"><title>G</title>-<polygon fill="white" stroke="transparent" points="-4,4 -4,-688 673.68,-688 673.68,4 -4,4"/>+<polygon fill="white" stroke="transparent" points="-4,4 -4,-688 808.33,-688 808.33,4 -4,4"/><!-- datafusion_common --><g id="node1" class="node"><title>datafusion_common</title>-<ellipse fill="none" stroke="black" cx="325.74" cy="-18" rx="83.39" ry="18"/>-<text text-anchor="middle" x="325.74" y="-14.3" font-family="Times,serif" font-size="14.00">datafusion_common</text>+<ellipse fill="none" stroke="black" cx="395.39" cy="-18" rx="102.88" ry="18"/>+<text text-anchor="middle" x="395.39" y="-14.3" font-family="Times,serif" font-size="14.00">datafusion_common</text></g><!-- datafusion_data_access --><g id="node2" class="node"><title>datafusion_data_access</title>-<ellipse fill="none" stroke="black" cx="576.74" cy="-234" rx="92.88" ry="18"/>-<text text-anchor="middle" x="576.74" y="-230.3" font-family="Times,serif" font-size="14.00">datafusion_data_access</text>+<ellipse fill="none" stroke="black" cx="685.39" cy="-234" rx="118.88" ry="18"/>+<text text-anchor="middle" x="685.39" y="-230.3" font-family="Times,serif" font-size="14.00">datafusion_data_access</text></g><!-- datafusion_expr --><g id="node3" class="node"><title>datafusion_expr</title>-<ellipse fill="none" stroke="black" cx="229.74" cy="-90" rx="67.69" ry="18"/>-<text text-anchor="middle" x="229.74" y="-86.3" font-family="Times,serif" font-size="14.00">datafusion_expr</text>+<ellipse fill="none" stroke="black" cx="282.39" cy="-90" rx="85.29" ry="18"/>+<text text-anchor="middle" x="282.39" y="-86.3" font-family="Times,serif" font-size="14.00">datafusion_expr</text></g><!-- datafusion_expr->datafusion_common --><g id="edge1" class="edge"><title>datafusion_expr->datafusion_common</title>-<path fill="none" stroke="black" d="M252.01,-72.76C264.76,-63.47 280.95,-51.66 294.91,-41.48"/>-<polygon fill="black" stroke="black" points="297.25,-44.11 303.26,-35.39 293.12,-38.45 297.25,-44.11"/>+<path fill="none" stroke="black" d="M308.6,-72.76C323.78,-63.36 343.11,-51.39 359.67,-41.13"/>+<polygon fill="black" stroke="black" points="361.88,-43.87 368.54,-35.63 358.19,-37.92 361.88,-43.87"/></g><!-- datafusion_physical_expr --><g id="node4" class="node"><title>datafusion_physical_expr</title>-<ellipse fill="none" stroke="black" cx="100.74" cy="-162" rx="100.98" ry="18"/>-<text text-anchor="middle" x="100.74" y="-158.3" font-family="Times,serif" font-size="14.00">datafusion_physical_expr</text>+<ellipse fill="none" stroke="black" cx="127.39" cy="-162" rx="127.28" ry="18"/>+<text text-anchor="middle" x="127.39" y="-158.3" font-family="Times,serif" font-size="14.00">datafusion_physical_expr</text></g><!-- datafusion_physical_expr->datafusion_common --><g id="edge2" class="edge"><title>datafusion_physical_expr->datafusion_common</title>-<path fill="none" stroke="black" d="M106.33,-144.01C113.78,-123.93 128.89,-90.88 152.74,-72 179.52,-50.8 214.76,-38.05 246.44,-30.39"/>-<polygon fill="black" stroke="black" points="247.62,-33.71 256.59,-28.08 246.06,-26.89 247.62,-33.71"/>+<path fill="none" stroke="black" d="M134.58,-143.8C143.96,-123.51 162.29,-90.25 188.39,-72 220.21,-49.75 260.61,-36.83 297.25,-29.34"/>+<polygon fill="black" stroke="black" points="298.32,-32.7 307.48,-27.37 297,-25.82 298.32,-32.7"/></g><!-- datafusion_physical_expr->datafusion_expr --><g id="edge3" class="edge"><title>datafusion_physical_expr->datafusion_expr</title>-<path fill="none" stroke="black" d="M130.66,-144.76C149.04,-134.79 172.73,-121.94 192.34,-111.3"/>-<polygon fill="black" stroke="black" points="194.19,-114.27 201.31,-106.43 190.85,-108.12 194.19,-114.27"/>+<path fill="none" stroke="black" d="M163.73,-144.59C186.16,-134.46 215.08,-121.4 238.75,-110.71"/>+<polygon fill="black" stroke="black" points="240.2,-113.89 247.87,-106.59 237.32,-107.51 240.2,-113.89"/></g><!-- datafusion_jit --><g id="node5" class="node"><title>datafusion_jit</title>-<ellipse fill="none" stroke="black" cx="316.74" cy="-162" rx="59.29" ry="18"/>-<text text-anchor="middle" x="316.74" y="-158.3" font-family="Times,serif" font-size="14.00">datafusion_jit</text>+<ellipse fill="none" stroke="black" cx="383.39" cy="-162" rx="73.39" ry="18"/>+<text text-anchor="middle" x="383.39" y="-158.3" font-family="Times,serif" font-size="14.00">datafusion_jit</text></g><!-- datafusion_jit->datafusion_common --><g id="edge4" class="edge"><title>datafusion_jit->datafusion_common</title>-<path fill="none" stroke="black" d="M317.83,-143.87C319.36,-119.67 322.18,-75.21 324,-46.39"/>-<polygon fill="black" stroke="black" points="327.51,-46.39 324.65,-36.19 320.53,-45.95 327.51,-46.39"/>+<path fill="none" stroke="black" d="M384.84,-143.87C386.88,-119.67 390.64,-75.21 393.07,-46.39"/>+<polygon fill="black" stroke="black" points="396.58,-46.45 393.94,-36.19 389.61,-45.86 396.58,-46.45"/></g><!-- datafusion_jit->datafusion_expr --><g id="edge5" class="edge"><title>datafusion_jit->datafusion_expr</title>-<path fill="none" stroke="black" d="M296.56,-144.76C285.12,-135.55 270.61,-123.88 258.04,-113.77"/>-<polygon fill="black" stroke="black" points="260.1,-110.93 250.11,-107.39 255.71,-116.39 260.1,-110.93"/>+<path fill="none" stroke="black" d="M359.96,-144.76C346.42,-135.38 329.19,-123.44 314.41,-113.19"/>+<polygon fill="black" stroke="black" points="316.25,-110.21 306.04,-107.39 312.26,-115.96 316.25,-110.21"/></g><!-- datafusion_row --><g id="node6" class="node"><title>datafusion_row</title>-<ellipse fill="none" stroke="black" cx="361.74" cy="-234" rx="65.79" ry="18"/>-<text text-anchor="middle" x="361.74" y="-230.3" font-family="Times,serif" font-size="14.00">datafusion_row</text>+<ellipse fill="none" stroke="black" cx="429.39" cy="-234" rx="81.49" ry="18"/>+<text text-anchor="middle" x="429.39" y="-230.3" font-family="Times,serif" font-size="14.00">datafusion_row</text></g><!-- datafusion_row->datafusion_common --><g id="edge6" class="edge"><title>datafusion_row->datafusion_common</title>-<path fill="none" stroke="black" d="M371.28,-215.93C376.38,-205.82 382.13,-192.57 384.74,-180 387.99,-164.33 388.24,-159.61 384.74,-144 376.55,-107.46 356.42,-69.01 341.95,-44.57"/>-<polygon fill="black" stroke="black" points="344.89,-42.66 336.72,-35.92 338.9,-46.29 344.89,-42.66"/>+<path fill="none" stroke="black" d="M444.62,-216.24C452.48,-206.44 461.27,-193.4 465.39,-180 470.09,-164.71 469.43,-159.48 465.39,-144 455.6,-106.49 431.78,-68.32 414.65,-44.2"/>+<polygon fill="black" stroke="black" points="417.39,-42.01 408.68,-35.97 411.72,-46.12 417.39,-42.01"/></g><!-- datafusion_row->datafusion_jit --><g id="edge7" class="edge"><title>datafusion_row->datafusion_jit</title>-<path fill="none" stroke="black" d="M350.85,-216.05C345.49,-207.71 338.91,-197.49 332.97,-188.25"/>-<polygon fill="black" stroke="black" points="335.89,-186.31 327.53,-179.79 330,-190.09 335.89,-186.31"/>+<path fill="none" stroke="black" d="M418.25,-216.05C412.85,-207.84 406.25,-197.79 400.25,-188.66"/>+<polygon fill="black" stroke="black" points="403.16,-186.71 394.74,-180.28 397.31,-190.55 403.16,-186.71"/></g><!-- datafusion --><g id="node7" class="node"><title>datafusion</title>-<ellipse fill="none" stroke="black" cx="314.74" cy="-306" rx="47.39" ry="18"/>-<text text-anchor="middle" x="314.74" y="-302.3" font-family="Times,serif" font-size="14.00">datafusion</text>+<ellipse fill="none" stroke="black" cx="374.39" cy="-306" rx="59.59" ry="18"/>+<text text-anchor="middle" x="374.39" y="-302.3" font-family="Times,serif" font-size="14.00">datafusion</text></g><!-- datafusion->datafusion_common --><g id="edge8" class="edge"><title>datafusion->datafusion_common</title>-<path fill="none" stroke="black" d="M358.07,-298.44C385.67,-291.77 419.39,-278.45 436.74,-252 483.66,-180.45 398.83,-86 352.69,-42.63"/>-<polygon fill="black" stroke="black" points="354.82,-39.84 345.1,-35.63 350.08,-44.98 354.82,-39.84"/>+<path fill="none" stroke="black" d="M430.68,-299.87C462.34,-293.78 499.42,-280.56 519.39,-252 554.53,-201.74 521.44,-158.92 457.39,-72 449.24,-60.94 438.35,-50.64 427.98,-42.13"/>+<polygon fill="black" stroke="black" points="429.86,-39.15 419.84,-35.7 425.52,-44.64 429.86,-39.15"/></g><!-- datafusion->datafusion_data_access --><g id="edge9" class="edge"><title>datafusion->datafusion_data_access</title>-<path fill="none" stroke="black" d="M352.28,-294.97C394.6,-283.66 464.06,-265.11 514.52,-251.62"/>-<polygon fill="black" stroke="black" points="515.59,-254.96 524.34,-249 513.78,-248.2 515.59,-254.96"/>+<path fill="none" stroke="black" d="M420.95,-294.52C471.49,-283.15 552.88,-264.83 612.03,-251.51"/>+<polygon fill="black" stroke="black" points="613.07,-254.86 622.06,-249.25 611.53,-248.04 613.07,-254.86"/></g><!-- datafusion->datafusion_expr --><g id="edge10" class="edge"><title>datafusion->datafusion_expr</title>-<path fill="none" stroke="black" d="M303.04,-288.21C296.15,-277.98 287.48,-264.51 280.74,-252 264.13,-221.17 259.57,-213.3 248.74,-180 242.12,-159.62 237.18,-135.86 234,-118.01"/>-<polygon fill="black" stroke="black" points="237.42,-117.27 232.29,-108.01 230.52,-118.45 237.42,-117.27"/>+<path fill="none" stroke="black" d="M359.17,-288.18C350.59,-278.15 340.09,-264.9 332.39,-252 314.53,-222.09 311.97,-213.2 301.39,-180 294.92,-159.71 290,-136.11 286.79,-118.32"/>+<polygon fill="black" stroke="black" points="290.21,-117.58 285.05,-108.32 283.31,-118.77 290.21,-117.58"/></g><!-- datafusion->datafusion_physical_expr --><g id="edge12" class="edge"><title>datafusion->datafusion_physical_expr</title>-<path fill="none" stroke="black" d="M286.29,-291.36C266.11,-281.3 238.64,-266.85 215.74,-252 184.42,-231.7 150.92,-205.16 128.21,-186.36"/>-<polygon fill="black" stroke="black" points="130.27,-183.53 120.35,-179.81 125.79,-188.91 130.27,-183.53"/>+<path fill="none" stroke="black" d="M343.35,-290.49C321.99,-280.26 293.12,-265.94 268.39,-252 230.73,-230.77 189.03,-204.02 160.81,-185.42"/>+<polygon fill="black" stroke="black" points="162.42,-182.28 152.15,-179.68 158.55,-188.12 162.42,-182.28"/></g><!-- datafusion->datafusion_jit --><g id="edge11" class="edge"><title>datafusion->datafusion_jit</title>-<path fill="none" stroke="black" d="M303.15,-288.2C296.95,-278.18 289.95,-264.93 286.74,-252 282.89,-236.47 282.67,-231.47 286.74,-216 289.27,-206.39 293.99,-196.69 298.95,-188.26"/>-<polygon fill="black" stroke="black" points="301.98,-190.02 304.33,-179.68 296.05,-186.3 301.98,-190.02"/>+<path fill="none" stroke="black" d="M359.57,-288.17C351.93,-278.35 343.39,-265.31 339.39,-252 334.79,-236.68 333.96,-231.05 339.39,-216 343.2,-205.43 350.15,-195.48 357.41,-187.12"/>+<polygon fill="black" stroke="black" points="360.13,-189.33 364.37,-179.62 355,-184.56 360.13,-189.33"/></g><!-- datafusion->datafusion_row --><g id="edge13" class="edge"><title>datafusion->datafusion_row</title>-<path fill="none" stroke="black" d="M325.88,-288.41C331.47,-280.08 338.38,-269.8 344.63,-260.49"/>-<polygon fill="black" stroke="black" points="347.69,-262.21 350.36,-251.96 341.88,-258.31 347.69,-262.21"/>+<path fill="none" stroke="black" d="M387.42,-288.41C394.11,-279.91 402.38,-269.37 409.81,-259.91"/>+<polygon fill="black" stroke="black" points="412.64,-261.98 416.07,-251.96 407.14,-257.66 412.64,-261.98"/></g><!-- datafusion_proto --><g id="node8" class="node"><title>datafusion_proto</title>-<ellipse fill="none" stroke="black" cx="265.74" cy="-378" rx="70.39" ry="18"/>-<text text-anchor="middle" x="265.74" y="-374.3" font-family="Times,serif" font-size="14.00">datafusion_proto</text>+<ellipse fill="none" stroke="black" cx="374.39" cy="-378" rx="89.08" ry="18"/>+<text text-anchor="middle" x="374.39" y="-374.3" font-family="Times,serif" font-size="14.00">datafusion_proto</text></g><!-- datafusion_proto->datafusion --><g id="edge14" class="edge"><title>datafusion_proto->datafusion</title>-<path fill="none" stroke="black" d="M277.6,-360.05C283.44,-351.71 290.6,-341.49 297.06,-332.25"/>-<polygon fill="black" stroke="black" points="300.12,-333.99 302.99,-323.79 294.39,-329.97 300.12,-333.99"/>+<path fill="none" stroke="black" d="M374.39,-359.7C374.39,-351.98 374.39,-342.71 374.39,-334.11"/>+<polygon fill="black" stroke="black" points="377.89,-334.1 374.39,-324.1 370.89,-334.1 377.89,-334.1"/></g><!-- ballista_core --><g id="node9" class="node"><title>ballista_core</title>-<ellipse fill="none" stroke="black" cx="209.74" cy="-450" rx="55.79" ry="18"/>-<text text-anchor="middle" x="209.74" y="-446.3" font-family="Times,serif" font-size="14.00">ballista_core</text>+<ellipse fill="none" stroke="black" cx="368.39" cy="-450" rx="69.59" ry="18"/>+<text text-anchor="middle" x="368.39" y="-446.3" font-family="Times,serif" font-size="14.00">ballista_core</text></g><!-- ballista_core->datafusion --><g id="edge15" class="edge"><title>ballista_core->datafusion</title>-<path fill="none" stroke="black" d="M197.96,-432.24C186.23,-413.28 171.93,-382.16 186.74,-360 203.29,-335.24 233.76,-322.04 260.83,-315"/>-<polygon fill="black" stroke="black" points="261.69,-318.39 270.61,-312.67 260.07,-311.58 261.69,-318.39"/>+<path fill="none" stroke="black" d="M326.02,-435.61C307.33,-427.35 287.18,-414.67 276.39,-396 268.38,-382.15 268.2,-373.74 276.39,-360 286.68,-342.74 304.76,-330.76 322.61,-322.62"/>+<polygon fill="black" stroke="black" points="324.03,-325.82 331.88,-318.7 321.3,-319.37 324.03,-325.82"/></g><!-- ballista_core->datafusion_proto --><g id="edge16" class="edge"><title>ballista_core->datafusion_proto</title>-<path fill="none" stroke="black" d="M223.01,-432.41C229.82,-423.91 238.24,-413.37 245.81,-403.91"/>-<polygon fill="black" stroke="black" points="248.66,-405.95 252.18,-395.96 243.2,-401.58 248.66,-405.95"/>+<path fill="none" stroke="black" d="M369.87,-431.7C370.53,-423.98 371.33,-414.71 372.06,-406.11"/>+<polygon fill="black" stroke="black" points="375.56,-406.37 372.92,-396.1 368.58,-405.77 375.56,-406.37"/></g><!-- ballista_scheduler --><g id="node10" class="node"><title>ballista_scheduler</title>-<ellipse fill="none" stroke="black" cx="311.74" cy="-522" rx="74.19" ry="18"/>-<text text-anchor="middle" x="311.74" y="-518.3" font-family="Times,serif" font-size="14.00">ballista_scheduler</text>+<ellipse fill="none" stroke="black" cx="491.39" cy="-522" rx="94.78" ry="18"/>+<text text-anchor="middle" x="491.39" y="-518.3" font-family="Times,serif" font-size="14.00">ballista_scheduler</text></g><!-- ballista_scheduler->datafusion --><g id="edge18" class="edge"><title>ballista_scheduler->datafusion</title>-<path fill="none" stroke="black" d="M320.38,-503.94C334.2,-474.39 358.4,-411.87 344.74,-360 342.21,-350.39 337.49,-340.69 332.54,-332.26"/>-<polygon fill="black" stroke="black" points="335.43,-330.3 327.16,-323.68 329.5,-334.02 335.43,-330.3"/>+<path fill="none" stroke="black" d="M494.17,-503.74C498.29,-472.21 502.58,-404.48 472.39,-360 461.01,-343.24 442.54,-331.32 424.68,-323.09"/>+<polygon fill="black" stroke="black" points="426.01,-319.85 415.44,-319.11 423.24,-326.28 426.01,-319.85"/></g><!-- ballista_scheduler->ballista_core --><g id="edge17" class="edge"><title>ballista_scheduler->ballista_core</title>-<path fill="none" stroke="black" d="M288.08,-504.76C274.11,-495.18 256.25,-482.92 241.12,-472.53"/>-<polygon fill="black" stroke="black" points="242.79,-469.44 232.57,-466.67 238.83,-475.21 242.79,-469.44"/>+<path fill="none" stroke="black" d="M462.86,-504.76C445.54,-494.91 423.27,-482.23 404.7,-471.66"/>+<polygon fill="black" stroke="black" points="406.34,-468.57 395.92,-466.67 402.88,-474.65 406.34,-468.57"/></g><!-- ballista_executor --><g id="node11" class="node"><title>ballista_executor</title>-<ellipse fill="none" stroke="black" cx="110.74" cy="-522" rx="70.69" ry="18"/>-<text text-anchor="middle" x="110.74" y="-518.3" font-family="Times,serif" font-size="14.00">ballista_executor</text>+<ellipse fill="none" stroke="black" cx="250.39" cy="-522" rx="89.88" ry="18"/>+<text text-anchor="middle" x="250.39" y="-518.3" font-family="Times,serif" font-size="14.00">ballista_executor</text></g><!-- ballista_executor->datafusion --><g id="edge20" class="edge"><title>ballista_executor->datafusion</title>-<path fill="none" stroke="black" d="M113.08,-503.84C118.42,-471.27 134.47,-400.15 176.74,-360 200.3,-337.63 234.29,-324.42 262.65,-316.79"/>-<polygon fill="black" stroke="black" points="263.58,-320.16 272.42,-314.31 261.87,-313.38 263.58,-320.16"/>+<path fill="none" stroke="black" d="M247.08,-503.9C241.98,-472.36 235.71,-404.19 266.39,-360 279.09,-341.71 299.94,-329.46 319.95,-321.39"/>+<polygon fill="black" stroke="black" points="321.23,-324.65 329.36,-317.87 318.77,-318.1 321.23,-324.65"/></g><!-- ballista_executor->ballista_core --><g id="edge19" class="edge"><title>ballista_executor->ballista_core</title>-<path fill="none" stroke="black" d="M133.7,-504.76C147.26,-495.18 164.6,-482.92 179.29,-472.53"/>-<polygon fill="black" stroke="black" points="181.44,-475.3 187.59,-466.67 177.4,-469.58 181.44,-475.3"/>+<path fill="none" stroke="black" d="M277.76,-504.76C294.22,-495 315.35,-482.46 333.07,-471.95"/>+<polygon fill="black" stroke="black" points="335.17,-474.78 341.98,-466.67 331.59,-468.76 335.17,-474.78"/></g><!-- ballista --><g id="node12" class="node"><title>ballista</title>-<ellipse fill="none" stroke="black" cx="311.74" cy="-594" rx="36.29" ry="18"/>-<text text-anchor="middle" x="311.74" y="-590.3" font-family="Times,serif" font-size="14.00">ballista</text>+<ellipse fill="none" stroke="black" cx="368.39" cy="-594" rx="44.69" ry="18"/>+<text text-anchor="middle" x="368.39" y="-590.3" font-family="Times,serif" font-size="14.00">ballista</text></g><!-- ballista->datafusion --><g id="edge21" class="edge"><title>ballista->datafusion</title>-<path fill="none" stroke="black" d="M340.75,-582.97C359.83,-574.68 383.32,-560.84 394.74,-540 417.46,-498.54 407.39,-448.69 361.74,-360 356.23,-349.28 348.04,-339.01 340.05,-330.4"/>-<polygon fill="black" stroke="black" points="342.32,-327.72 332.84,-323 337.31,-332.61 342.32,-327.72"/>+<path fill="none" stroke="black" d="M325.2,-588.69C268.21,-582 172.58,-566.99 151.39,-540 101.01,-475.84 142.07,-446.76 247.39,-360 268.62,-342.51 296.44,-330.03 320.63,-321.59"/>+<polygon fill="black" stroke="black" points="322.02,-324.82 330.4,-318.34 319.81,-318.18 322.02,-324.82"/></g><!-- ballista->ballista_core --><g id="edge22" class="edge"><title>ballista->ballista_core</title>-<path fill="none" stroke="black" d="M284.06,-582.14C265.59,-573.47 242.29,-559.53 228.74,-540 216.19,-521.9 211.67,-497.12 210.16,-478.3"/>-<polygon fill="black" stroke="black" points="213.65,-478.06 209.59,-468.27 206.67,-478.46 213.65,-478.06"/>+<path fill="none" stroke="black" d="M368.39,-575.87C368.39,-551.67 368.39,-507.21 368.39,-478.39"/>+<polygon fill="black" stroke="black" points="371.89,-478.19 368.39,-468.19 364.89,-478.19 371.89,-478.19"/></g><!-- ballista->ballista_scheduler --><g id="edge23" class="edge"><title>ballista->ballista_scheduler</title>-<path fill="none" stroke="black" d="M311.74,-575.7C311.74,-567.98 311.74,-558.71 311.74,-550.11"/>-<polygon fill="black" stroke="black" points="315.24,-550.1 311.74,-540.1 308.24,-550.1 315.24,-550.1"/>+<path fill="none" stroke="black" d="M393.28,-578.83C410.69,-568.93 434.25,-555.52 453.92,-544.32"/>+<polygon fill="black" stroke="black" points="455.69,-547.34 462.65,-539.35 452.23,-541.26 455.69,-547.34"/></g><!-- ballista->ballista_executor --><g id="edge24" class="edge"><title>ballista->ballista_executor</title>-<path fill="none" stroke="black" d="M282.94,-582.97C251.02,-571.85 198.96,-553.72 160.42,-540.3"/>-<polygon fill="black" stroke="black" points="161.53,-536.98 150.94,-537 159.23,-543.59 161.53,-536.98"/>+<path fill="none" stroke="black" d="M344.22,-578.67C327.65,-568.83 305.37,-555.61 286.67,-544.52"/>+<polygon fill="black" stroke="black" points="288.21,-541.37 277.83,-539.28 284.64,-547.39 288.21,-541.37"/></g><!-- datafusion_cli --><g id="node13" class="node"><title>datafusion_cli</title>-<ellipse fill="none" stroke="black" cx="381.74" cy="-666" rx="60.39" ry="18"/>-<text text-anchor="middle" x="381.74" y="-662.3" font-family="Times,serif" font-size="14.00">datafusion_cli</text>+<ellipse fill="none" stroke="black" cx="594.39" cy="-450" rx="74.99" ry="18"/>+<text text-anchor="middle" x="594.39" y="-446.3" font-family="Times,serif" font-size="14.00">datafusion_cli</text></g><!-- datafusion_cli->datafusion --><g id="edge25" class="edge"><title>datafusion_cli->datafusion</title>-<path fill="none" stroke="black" d="M396.25,-648.39C416.75,-623.13 451.74,-572.75 451.74,-523 451.74,-523 451.74,-523 451.74,-449 451.74,-391.36 392.55,-348.14 351.98,-325.29"/>-<polygon fill="black" stroke="black" points="353.58,-322.18 343.13,-320.46 350.23,-328.32 353.58,-322.18"/>+<path fill="none" stroke="black" d="M581.21,-432.21C565.1,-412.65 536.18,-380.39 505.39,-360 481.01,-343.86 450.94,-331.26 425.76,-322.4"/>+<polygon fill="black" stroke="black" points="426.61,-318.99 416.01,-319.07 424.35,-325.62 426.61,-318.99"/></g>-<!-- datafusion_cli->ballista -->+<!-- ballista_cli -->+<g id="node14" class="node">+<title>ballista_cli</title>+<ellipse fill="none" stroke="black" cx="614.39" cy="-666" rx="59.59" ry="18"/>+<text text-anchor="middle" x="614.39" y="-662.3" font-family="Times,serif" font-size="14.00">ballista_cli</text>+</g>+<!-- ballista_cli->datafusion --><g id="edge26" class="edge">-<title>datafusion_cli->ballista</title>-<path fill="none" stroke="black" d="M365.15,-648.41C356,-639.26 344.51,-627.76 334.52,-617.78"/>-<polygon fill="black" stroke="black" points="336.8,-615.11 327.25,-610.51 331.85,-620.06 336.8,-615.11"/>+<title>ballista_cli->datafusion</title>+<path fill="none" stroke="black" d="M631.99,-648.48C656.35,-623.72 697.39,-574.4 697.39,-523 697.39,-523 697.39,-523 697.39,-449 697.39,-339.22 539.08,-313.55 444.13,-308.03"/>+<polygon fill="black" stroke="black" points="444.18,-304.53 434.01,-307.51 443.81,-311.52 444.18,-304.53"/>+</g>+<!-- ballista_cli->ballista -->+<g id="edge28" class="edge">+<title>ballista_cli->ballista</title>+<path fill="none" stroke="black" d="M572.38,-653.05C528.24,-640.49 459.04,-620.8 413.7,-607.89"/>+<polygon fill="black" stroke="black" points="414.42,-604.46 403.84,-605.09 412.5,-611.19 414.42,-604.46"/>+</g>+<!-- ballista_cli->datafusion_cli -->+<g id="edge27" class="edge">+<title>ballista_cli->datafusion_cli</title>+<path fill="none" stroke="black" d="M612.79,-647.85C609.33,-610.83 601.13,-523.18 596.95,-478.39"/>+<polygon fill="black" stroke="black" points="600.41,-477.86 596,-468.23 593.45,-478.51 600.41,-477.86"/></g></g></svg>diff --git a/dev/update_ballista_versions.py b/dev/update_ballista_versions.pyindex d30f027d7b..fa2c8bc18f 100755--- a/dev/update_ballista_versions.py+++ b/dev/update_ballista_versions.py@@ -35,7 +35,7 @@ def update_cargo_toml(cargo_toml: str, new_version: str):data = f.read()doc = tomlkit.parse(data)- if "ballista/" in cargo_toml:+ if "ballista/" in cargo_toml or "ballista-cli/" in cargo_toml:doc.get('package')['version'] = new_version# ballista crates also depend on each other@@ -77,12 +77,12 @@ def main():ballista_crates = set([os.path.join(repo_root, rel_path, "Cargo.toml")for rel_path in [+ 'ballista-cli','ballista-examples','ballista/rust/core','ballista/rust/scheduler','ballista/rust/executor','ballista/rust/client',- 'datafusion-cli',]])new_version = args.new_versiondiff --git a/docs/source/cli/index.rst b/docs/source/cli/index.rstindex 89f7f5da76..bc22bf6c83 100644--- a/docs/source/cli/index.rst+++ b/docs/source/cli/index.rst@@ -23,10 +23,15 @@ The Arrow DataFusion CLI is a command-line interactive SQL utility that allowsqueries to be executed against CSV and Parquet files. It is a convenient way totry DataFusion out with your own data sources.+Install and run using Cargo+===========================++The easiest way to install DataFusion CLI a spin is via `cargo install datafusion-cli`.+Install and run using Homebrew (on MacOS)=========================================-The easiest way to give DataFusion CLI a spin is via Homebrew (on MacOS). Install it as any other pre-built software like this:+DataFusion CLI can also be installed via Homebrew (on MacOS). Install it as any other pre-built software like this:.. code-block:: bash@@ -41,26 +46,19 @@ The easiest way to give DataFusion CLI a spin is via Homebrew (on MacOS). Instaldatafusion-cli-Run using Cargo-===============--Use the following commands to clone this repository and run the CLI. This will require the Rust toolchain to be installed. Rust can be installed from `https://rustup.rs <https://rustup.rs/>`_.--.. code-block:: bash-- git clone https://github.com/apache/arrow-datafusion- cd arrow-datafusion/datafusion-cli- cargo run --release-Run using Docker================+There is no officially published Docker image for the DataFusion CLI, so it is necessary to build from source+instead.+Use the following commands to clone this repository and build a Docker image containing the CLI tool. Note that there is :code:`.dockerignore` file in the root of the repository that may need to be deleted in order for this to work... code-block:: bashgit clone https://github.com/apache/arrow-datafusion+ git checkout 7.0.0cd arrow-datafusiondocker build -f datafusion-cli/Dockerfile . --tag datafusion-clidocker run -it -v $(your_data_location):/data datafusion-cli@@ -71,25 +69,22 @@ Usage.. code-block:: bash- DataFusion 5.1.0-SNAPSHOT- DataFusion is an in-memory query engine that uses Apache Arrow as the memory model. It supports executing SQL queries- against CSV and Parquet files as well as querying directly against in-memory data.+ Apache Arrow <[email protected]>+ Command Line Client for DataFusion query engine and Ballista distributed computation engine.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 informationType `exit` or `quit` to exit the CLI.diff --git a/docs/source/user-guide/cli.md b/docs/source/user-guide/cli.mdindex 9561b5e1d1..ec38aad9a9 100644--- a/docs/source/user-guide/cli.md+++ b/docs/source/user-guide/cli.md@@ -51,7 +51,7 @@ $ echo "1,2" > data.csv```bash$ datafusion-cli-DataFusion CLI v5.1.0-SNAPSHOT+DataFusion CLI v7.0.0> CREATE EXTERNAL TABLE foo (a INT, b INT) STORED AS CSV LOCATION 'data.csv';0 rows in set. Query took 0.001 seconds.diff --git a/docs/source/user-guide/distributed/clients/cli.rst b/docs/source/user-guide/distributed/clients/cli.rstnew file mode 100644index 0000000000..7151850822--- /dev/null+++ b/docs/source/user-guide/distributed/clients/cli.rst@@ -0,0 +1,111 @@+.. Licensed to the Apache Software Foundation (ASF) under one+.. or more contributor license agreements. See the NOTICE file+.. distributed with this work for additional information+.. regarding copyright ownership. The ASF licenses this file+.. to you under the Apache License, Version 2.0 (the+.. "License"); you may not use this file except in compliance+.. with the License. You may obtain a copy of the License at++.. http://www.apache.org/licenses/LICENSE-2.0++.. Unless required by applicable law or agreed to in writing,+.. software distributed under the License is distributed on an+.. "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY+.. KIND, either express or implied. See the License for the+.. specific language governing permissions and limitations+.. under the License.++=======================+Ballista Command-line+=======================++The Arrow Ballista CLI is a command-line interactive SQL utility that allows+queries to be executed against CSV and Parquet files. It is a convenient way to+try Ballista out with your own data sources.++Install and run using Cargo+===========================++The easiest way to install Ballista CLI a spin is via `cargo install ballista-cli`.++Run using Docker+================++There is no officially published Docker image for the Ballista CLI, so it is necessary to build from source+instead.++Use the following commands to clone this repository and build a Docker image containing the CLI tool. Note that there is :code:`.dockerignore` file in the root of the repository that may need to be deleted in order for this to work.++.. code-block:: bash++ git clone https://github.com/apache/arrow-datafusion+ git checkout 7.0.0+ cd arrow-datafusion+ docker build -f ballista-cli/Dockerfile . --tag ballista-cli+ docker run -it -v $(your_data_location):/data ballista-cli+++Usage+=====++.. code-block:: bash++ Apache Arrow <[email protected]>+ Command Line Client for Ballista distributed query engine.++ USAGE:+ ballista-cli [OPTIONS]++ OPTIONS:+ -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+ --host <HOST> Ballista scheduler host+ -p, --data-path <DATA_PATH> Path to your data, default to current directory+ --port <PORT> Ballista scheduler port+ -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++Type `exit` or `quit` to exit the CLI.+++Registering Parquet Data Sources+================================++Parquet data sources can be registered by executing a :code:`CREATE EXTERNAL TABLE` SQL statement. It is not necessary to provide schema information for Parquet files.++.. code-block:: sql++ CREATE EXTERNAL TABLE taxi+ STORED AS PARQUET+ LOCATION '/mnt/nyctaxi/tripdata.parquet';+++Registering CSV Data Sources+============================++CSV data sources can be registered by executing a :code:`CREATE EXTERNAL TABLE` SQL statement. It is necessary to provide schema information for CSV files since DataFusion does not automatically infer the schema when using SQL to query CSV files.++.. code-block:: sql++ CREATE EXTERNAL TABLE test (+ c1 VARCHAR NOT NULL,+ c2 INT NOT NULL,+ c3 SMALLINT NOT NULL,+ c4 SMALLINT NOT NULL,+ c5 INT NOT NULL,+ c6 BIGINT NOT NULL,+ c7 SMALLINT NOT NULL,+ c8 INT NOT NULL,+ c9 BIGINT NOT NULL,+ c10 VARCHAR NOT NULL,+ c11 FLOAT NOT NULL,+ c12 DOUBLE NOT NULL,+ c13 VARCHAR NOT NULL+ )+ STORED AS CSV+ WITH HEADER ROW+ LOCATION '/path/to/aggregate_test_100.csv';diff --git a/docs/source/user-guide/distributed/clients/index.rst b/docs/source/user-guide/distributed/clients/index.rstindex c9eb1e1f52..6199bca5e7 100644--- a/docs/source/user-guide/distributed/clients/index.rst+++ b/docs/source/user-guide/distributed/clients/index.rst@@ -21,5 +21,6 @@ Clients.. toctree:::maxdepth: 2+ clirustpython