Skip to content

Apache DataFusion SQL Query Engine

ARROW-10269: [Rust] Update to 2020-11-14 nightly

Neville Dipale335d281111fb
diff --git a/.env b/.env
index 5c6aaa5182..c06a7f9f12 100644
--- a/.env
+++ b/.env
@@ -28,7 +28,7 @@ FEDORA=33
PYTHON=3.6
LLVM=11
CLANG_TOOLS=8
-RUST=nightly-2020-04-22
+RUST=nightly-2020-11-14
GO=1.12
NODE=14
MAVEN=3.5.4
diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml
index b4f68ece02..d99641e7a0 100644
--- a/.github/workflows/rust.yml
+++ b/.github/workflows/rust.yml
@@ -50,7 +50,7 @@ jobs:
strategy:
fail-fast: false
matrix:
- rust: [nightly-2020-04-22]
+ rust: [nightly-2020-11-14]
env:
RUST: ${{ matrix.rust }}
steps:
@@ -96,7 +96,7 @@ jobs:
strategy:
fail-fast: false
matrix:
- rust: [nightly-2020-04-22]
+ rust: [nightly-2020-11-14]
steps:
- name: Install Rust
uses: actions-rs/toolchain@v1
@@ -134,7 +134,7 @@ jobs:
strategy:
fail-fast: false
matrix:
- rust: [nightly-2020-04-22]
+ rust: [nightly-2020-11-14]
steps:
- name: Install Rust
uses: actions-rs/toolchain@v1
diff --git a/.github/workflows/rust_cron.yml b/.github/workflows/rust_cron.yml
index 378f2dd108..3f605f1121 100644
--- a/.github/workflows/rust_cron.yml
+++ b/.github/workflows/rust_cron.yml
@@ -35,7 +35,7 @@ jobs:
strategy:
fail-fast: false
matrix:
- rust: [nightly-2020-04-22]
+ rust: [nightly-2020-11-14]
env:
RUST: ${{ matrix.rust }}
steps:
diff --git a/ci/docker/debian-10-rust.dockerfile b/ci/docker/debian-10-rust.dockerfile
index 9c9c9b5104..b074eb1286 100644
--- a/ci/docker/debian-10-rust.dockerfile
+++ b/ci/docker/debian-10-rust.dockerfile
@@ -33,7 +33,7 @@ RUN wget -q -O - https://github.com/google/flatbuffers/archive/v${flatbuffers}.t
cd / && \
rm -rf flatbuffers-${flatbuffers}
-ARG rust=nightly-2020-04-22
+ARG rust=nightly-2020-11-14
# freeze the version for deterministic builds
RUN rustup default ${rust} && \
diff --git a/ci/scripts/rust_coverage.sh b/ci/scripts/rust_coverage.sh
index fbe5b0d853..a8c1c36259 100755
--- a/ci/scripts/rust_coverage.sh
+++ b/ci/scripts/rust_coverage.sh
@@ -32,7 +32,9 @@ pushd ${source_dir}
rustup default ${rust}
rustup component add rustfmt --toolchain ${rust}-x86_64-unknown-linux-gnu
-cargo install cargo-tarpaulin
+# 2020-11-15: There is a cargo-tarpaulin regression in 0.17.0
+# see https://github.com/xd009642/tarpaulin/issues/618
+cargo install --version 0.16.0 cargo-tarpaulin
cargo tarpaulin --out Xml
diff --git a/rust/datafusion/src/lib.rs b/rust/datafusion/src/lib.rs
index 45a73eb74b..e90086ee22 100644
--- a/rust/datafusion/src/lib.rs
+++ b/rust/datafusion/src/lib.rs
@@ -16,6 +16,43 @@
// under the License.
#![warn(missing_docs)]
+// Clippy lints, some should be disabled incrementally
+#![allow(
+ clippy::assertions_on_constants,
+ clippy::bind_instead_of_map,
+ clippy::blocks_in_if_conditions,
+ clippy::clone_on_copy,
+ clippy::collapsible_if,
+ clippy::explicit_counter_loop,
+ clippy::field_reassign_with_default,
+ clippy::float_cmp,
+ clippy::into_iter_on_ref,
+ clippy::len_zero,
+ clippy::let_and_return,
+ clippy::map_clone,
+ clippy::map_collect_result_unit,
+ clippy::match_like_matches_macro,
+ clippy::match_ref_pats,
+ clippy::module_inception,
+ clippy::needless_lifetimes,
+ clippy::needless_range_loop,
+ clippy::needless_return,
+ clippy::new_without_default,
+ clippy::or_fun_call,
+ clippy::ptr_arg,
+ clippy::redundant_clone,
+ clippy::redundant_field_names,
+ clippy::redundant_static_lifetimes,
+ clippy::redundant_pattern_matching,
+ clippy::redundant_closure,
+ clippy::single_match,
+ clippy::stable_sort_primitive,
+ clippy::type_complexity,
+ clippy::unit_arg,
+ clippy::unnecessary_unwrap,
+ clippy::useless_format,
+ clippy::zero_prefixed_literal
+)]
//! DataFusion is an extensible query execution framework that uses
//! [Apache Arrow](https://arrow.apache.org) as its in-memory format.
diff --git a/rust/rust-toolchain b/rust/rust-toolchain
index f3bb3d3758..1ff3dd1284 100644
--- a/rust/rust-toolchain
+++ b/rust/rust-toolchain
@@ -1 +1 @@
-nightly-2020-04-22
+nightly-2020-11-14