Apache DataFusion SQL Query Engine
ARROW-10929: [Rust] Change CI to use Stable Rust
Andrew Lamb903f3496a50b
diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.ymlindex 19a80ac5ea..69483bcf86 100644--- a/.github/workflows/rust.yml+++ b/.github/workflows/rust.yml@@ -38,7 +38,7 @@ jobs:strategy:matrix:arch: [amd64]- rust: [nightly-2020-11-24]+ rust: [stable]container:image: ${{ matrix.arch }}/ruststeps:@@ -77,7 +77,7 @@ jobs:strategy:matrix:arch: [amd64]- rust: [nightly-2020-11-24]+ rust: [stable]container:image: ${{ matrix.arch }}/rustenv:@@ -114,11 +114,17 @@ jobs:cd datafusioncargo run --example csv_sqlcargo run --example parquet_sql+ cd ..+ cd arrow+ cargo test+ cargo run --example builders+ cargo run --example dynamic_types+ cargo run --example read_csv+ cargo run --example read_csv_infer_schema- # test the --features "simd" of the arrow crate+ # test the --features "simd" of the arrow crate. This requires nightly.linux-test-simd:name: AMD64 Debian 10 Rust ${{ matrix.rust }} test arrow simd- needs: [linux-build-lib]runs-on: ubuntu-lateststrategy:matrix:@@ -156,57 +162,13 @@ jobs:cd rust/arrowcargo test --features "simd"- # test the arrow crate with stable rust- linux-test-stable:- name: AMD64 Debian 10 Rust ${{ matrix.rust }} test arrow- runs-on: ubuntu-latest- strategy:- matrix:- arch: [amd64]- rust: [stable]- container:- image: ${{ matrix.arch }}/rust- env:- ARROW_TEST_DATA: /__w/arrow/arrow/testing/data- 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 }}- - uses: actions-rs/toolchain@v1- with:- toolchain: ${{ matrix.rust }}- default: true- components: rustfmt- - name: Run tests- run: |- export CARGO_HOME="/github/home/.cargo"- export CARGO_TARGET_DIR="/github/home/target"- cd rust/arrow- cargo test- cargo run --example builders- cargo run --example dynamic_types- cargo run --example read_csv- cargo run --example read_csv_infer_schema-windows-and-macos:name: ${{ matrix.os }} Rust ${{ matrix.rust }}runs-on: ${{ matrix.os }}strategy:matrix:os: [windows-latest, macos-latest]- rust: [nightly-2020-11-24]+ rust: [stable]steps:- uses: actions/checkout@v2with:@@ -234,7 +196,7 @@ jobs:strategy:matrix:arch: [amd64]- rust: [nightly-2020-11-24]+ rust: [stable]container:image: ${{ matrix.arch }}/ruststeps:@@ -271,7 +233,7 @@ jobs:strategy:matrix:arch: [amd64]- rust: [nightly-2020-11-24]+ rust: [stable]steps:- uses: actions/checkout@v2with:@@ -311,7 +273,7 @@ jobs:runs-on: ubuntu-lateststrategy:matrix:- rust: [nightly-2020-11-24]+ rust: [stable]steps:- uses: actions/checkout@v2with:diff --git a/rust/datafusion/src/lib.rs b/rust/datafusion/src/lib.rsindex 7f01a6fb4a..d3982ba8ce 100644--- a/rust/datafusion/src/lib.rs+++ b/rust/datafusion/src/lib.rs@@ -17,7 +17,6 @@#![warn(missing_docs)]// Clippy lints, some should be disabled incrementally#![allow(- clippy::field_reassign_with_default,clippy::float_cmp,clippy::module_inception,clippy::needless_lifetimes,diff --git a/rust/datafusion/src/logical_plan/expr.rs b/rust/datafusion/src/logical_plan/expr.rsindex 388e41e1c5..831a592c37 100644--- a/rust/datafusion/src/logical_plan/expr.rs+++ b/rust/datafusion/src/logical_plan/expr.rs@@ -689,6 +689,7 @@ pub fn create_udf(/// Creates a new UDAF with a specific signature, state type and return type./// The signature and state type must match the `Acumulator's implementation`.+#[allow(clippy::rc_buffer)]pub fn create_udaf(name: &str,input_type: DataType,diff --git a/rust/datafusion/src/logical_plan/plan.rs b/rust/datafusion/src/logical_plan/plan.rsindex 358c4ca8f9..957f2bb3e4 100644--- a/rust/datafusion/src/logical_plan/plan.rs+++ b/rust/datafusion/src/logical_plan/plan.rs@@ -570,6 +570,7 @@ impl From<&PlanType> for String {/// Represents some sort of execution plan, in String form#[derive(Debug, Clone, PartialEq)]+#[allow(clippy::rc_buffer)]pub struct StringifiedPlan {/// An identifier of what type of plan this string representspub plan_type: PlanType,