Apache DataFusion SQL Query Engine
use 2021 edition (#1084)
Jiayu Liub020aba079ae
diff --git a/.env b/.envindex d20df1a6c1..d1e3c34c31 100644--- a/.env+++ b/.env@@ -47,7 +47,7 @@ FEDORA=33PYTHON=3.6LLVM=11CLANG_TOOLS=8-RUST=nightly-2021-09-07+RUST=nightly-2021-10-21GO=1.15NODE=14MAVEN=3.5.4diff --git a/.github/workflows/python_build.yml b/.github/workflows/python_build.ymlindex 74b61aeb1e..c38e347fb4 100644--- a/.github/workflows/python_build.yml+++ b/.github/workflows/python_build.yml@@ -60,7 +60,7 @@ jobs:- uses: actions-rs/toolchain@v1with:- toolchain: nightly-2021-09-07+ toolchain: nightly-2021-10-21- name: Install dependenciesrun: |diff --git a/.github/workflows/python_test.yaml b/.github/workflows/python_test.yamlindex 17e7abb8b9..9cf6d56553 100644--- a/.github/workflows/python_test.yaml+++ b/.github/workflows/python_test.yaml@@ -25,8 +25,8 @@ jobs:- uses: actions/checkout@v2- name: Setup Rust toolchainrun: |- rustup toolchain install nightly-2021-09-07- rustup default nightly-2021-09-07+ rustup toolchain install nightly-2021-10-21+ rustup default nightly-2021-10-21rustup component add rustfmt- name: Cache Cargouses: actions/cache@v2diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.ymlindex aae84e6626..14f231d16b 100644--- a/.github/workflows/rust.yml+++ b/.github/workflows/rust.yml@@ -147,6 +147,10 @@ jobs:- uses: actions/checkout@v2with:submodules: true+ - name: Setup toolchain+ run: |+ rustup toolchain install stable+ rustup default stable- uses: actions/setup-python@v2with:python-version: "3.9"@@ -283,7 +287,7 @@ jobs:strategy:matrix:arch: [amd64]- rust: [nightly-2021-09-07]+ rust: [nightly-2021-10-21]steps:- uses: actions/checkout@v2with:diff --git a/ballista-examples/Cargo.toml b/ballista-examples/Cargo.tomlindex 55a5916f12..6ff6b60d0c 100644--- a/ballista-examples/Cargo.toml+++ b/ballista-examples/Cargo.toml@@ -24,8 +24,9 @@ repository = "https://github.com/apache/arrow-datafusion"authors = ["Apache Arrow <[email protected]>"]license = "Apache-2.0"keywords = [ "arrow", "distributed", "query", "sql" ]-edition = "2018"+edition = "2021"publish = false+rust-version = "1.56"[dependencies]arrow-flight = { version = "6.0.0" }diff --git a/ballista/rust/client/Cargo.toml b/ballista/rust/client/Cargo.tomlindex d38108506a..adac150c92 100644--- a/ballista/rust/client/Cargo.toml+++ b/ballista/rust/client/Cargo.toml@@ -23,7 +23,8 @@ version = "0.6.0"homepage = "https://github.com/apache/arrow-datafusion"repository = "https://github.com/apache/arrow-datafusion"authors = ["Apache Arrow <[email protected]>"]-edition = "2018"+edition = "2021"+rust-version = "1.56"[dependencies]ballista-core = { path = "../core", version = "0.6.0" }diff --git a/ballista/rust/scheduler/Cargo.toml b/ballista/rust/scheduler/Cargo.tomlindex 10664f19d1..ac0d98738f 100644--- a/ballista/rust/scheduler/Cargo.toml+++ b/ballista/rust/scheduler/Cargo.toml@@ -59,7 +59,7 @@ ballista-core = { path = "../core", version = "0.6.0" }uuid = { version = "0.8", features = ["v4"] }[build-dependencies]-configure_me_codegen = "0.4.0"+configure_me_codegen = "0.4.1"tonic-build = { version = "0.5" }[package.metadata.configure_me.bin]diff --git a/benchmarks/Cargo.toml b/benchmarks/Cargo.tomlindex ce882f6476..6f6e51d1de 100644--- a/benchmarks/Cargo.toml+++ b/benchmarks/Cargo.toml@@ -19,12 +19,13 @@name = "arrow-benchmarks"description = "Apache Arrow Benchmarks"version = "4.0.0-SNAPSHOT"-edition = "2018"+edition = "2021"authors = ["Apache Arrow <[email protected]>"]homepage = "https://github.com/apache/arrow-datafusion"repository = "https://github.com/apache/arrow-datafusion"license = "Apache-2.0"publish = false+rust-version = "1.56"[features]simd = ["datafusion/simd"]diff --git a/ci/docker/linux-apt-lint.dockerfile b/ci/docker/linux-apt-lint.dockerfileindex de033d31e8..985f356c4e 100644--- a/ci/docker/linux-apt-lint.dockerfile+++ b/ci/docker/linux-apt-lint.dockerfile@@ -46,7 +46,7 @@ COPY ci/scripts/install_iwyu.sh /arrow/ci/scripts/RUN arrow/ci/scripts/install_iwyu.sh /tmp/iwyu /usr/local ${clang_tools}# Rust linter-ARG rust=nightly-2021-09-07+ARG rust=nightly-2021-10-21RUN curl https://sh.rustup.rs -sSf | \sh -s -- --default-toolchain stable -yENV PATH /root/.cargo/bin:$PATHdiff --git a/datafusion-cli/Cargo.toml b/datafusion-cli/Cargo.tomlindex 8b7ac195bf..b424f498ac 100644--- a/datafusion-cli/Cargo.toml+++ b/datafusion-cli/Cargo.toml@@ -19,12 +19,12 @@name = "datafusion-cli"version = "5.1.0-SNAPSHOT"authors = ["Apache Arrow <[email protected]>"]-edition = "2018"+edition = "2021"keywords = [ "arrow", "datafusion", "ballista", "query", "sql", "cli", "repl" ]license = "Apache-2.0"homepage = "https://github.com/apache/arrow-datafusion"repository = "https://github.com/apache/arrow-datafusion"-+rust-version = "1.56"[dependencies]clap = "2.33"diff --git a/datafusion-cli/Dockerfile b/datafusion-cli/Dockerfileindex d24a55ff5c..fe177b6dcb 100644--- a/datafusion-cli/Dockerfile+++ b/datafusion-cli/Dockerfile@@ -15,7 +15,7 @@# specific language governing permissions and limitations# under the License.-FROM rust:1.55 as builder+FROM rust:1.56 as builderCOPY ./datafusion /usr/src/datafusiondiff --git a/datafusion-examples/Cargo.toml b/datafusion-examples/Cargo.tomlindex 9f151f012e..a087f57cbd 100644--- a/datafusion-examples/Cargo.toml+++ b/datafusion-examples/Cargo.toml@@ -24,8 +24,9 @@ repository = "https://github.com/apache/arrow-datafusion"authors = ["Apache Arrow <[email protected]>"]license = "Apache-2.0"keywords = [ "arrow", "query", "sql" ]-edition = "2018"+edition = "2021"publish = false+rust-version = "1.56"[[example]]name = "avro_sql"diff --git a/datafusion/Cargo.toml b/datafusion/Cargo.tomlindex 6e8b5216f0..e05bc0702b 100644--- a/datafusion/Cargo.toml+++ b/datafusion/Cargo.toml@@ -30,7 +30,8 @@ include = ["src/**/*.rs","Cargo.toml",]-edition = "2018"+edition = "2021"+rust-version = "1.56"[lib]name = "datafusion"diff --git a/datafusion/src/optimizer/filter_push_down.rs b/datafusion/src/optimizer/filter_push_down.rsindex 84265cb81e..843d4e00c0 100644--- a/datafusion/src/optimizer/filter_push_down.rs+++ b/datafusion/src/optimizer/filter_push_down.rs@@ -1172,8 +1172,6 @@ mod tests {fn table_scan_with_pushdown_provider(filter_support: TableProviderFilterPushDown,) -> Result<LogicalPlan> {- use std::convert::TryFrom;-let test_provider = PushDownProvider { filter_support };let table_scan = LogicalPlan::TableScan {diff --git a/datafusion/src/physical_plan/expressions/not.rs b/datafusion/src/physical_plan/expressions/not.rsindex 341d38a10a..d94e78fb8d 100644--- a/datafusion/src/physical_plan/expressions/not.rs+++ b/datafusion/src/physical_plan/expressions/not.rs@@ -86,7 +86,6 @@ impl PhysicalExpr for NotExpr {)))}ColumnarValue::Scalar(scalar) => {- use std::convert::TryInto;let bool_value: bool = scalar.try_into()?;Ok(ColumnarValue::Scalar(ScalarValue::Boolean(Some(!bool_value,diff --git a/python/Cargo.toml b/python/Cargo.tomlindex 731edcb5c9..5e0ab8d193 100644--- a/python/Cargo.toml+++ b/python/Cargo.toml@@ -24,7 +24,8 @@ authors = ["Apache Arrow <[email protected]>"]description = "Build and run queries against data"readme = "README.md"license = "Apache-2.0"-edition = "2018"+edition = "2021"+rust-version = "1.56"[dependencies]libc = "0.2"diff --git a/python/rust-toolchain b/python/rust-toolchainindex 3e3dc5da27..e7eda32f08 100644--- a/python/rust-toolchain+++ b/python/rust-toolchain@@ -1 +1 @@-nightly-2021-09-07+nightly-2021-10-21diff --git a/rustfmt.toml b/rustfmt.tomlindex c49cccdd9f..4522e520a4 100644--- a/rustfmt.toml+++ b/rustfmt.toml@@ -15,7 +15,7 @@# specific language governing permissions and limitations# under the License.-edition = "2018"+edition = "2021"max_width = 90# ignore generated files