diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 746a05e37..ebcbb1399 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -10,27 +10,20 @@ jobs: format: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - name: Install minimal stable with clippy and rustfmt - uses: actions-rs/toolchain@v1 + - uses: actions/checkout@v4 + - name: Install minimal stable with rustfmt + uses: actions-rust-lang/setup-rust-toolchain@v1 with: - profile: default - toolchain: stable - override: true - - uses: Swatinem/rust-cache@v2 + components: rustfmt - name: format run: cargo fmt -- --check + msrv: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Install minimal stable and cargo msrv - uses: actions-rs/toolchain@v1 - with: - profile: default - toolchain: stable - override: true - - uses: Swatinem/rust-cache@v2 + uses: actions-rust-lang/setup-rust-toolchain@v1 - name: Install cargo-msrv shell: bash run: | @@ -41,21 +34,18 @@ jobs: cargo msrv --path derive-macros/ verify --all-features cargo msrv --path ffi/ verify --all-features cargo msrv --path ffi-proc-macros/ verify --all-features + docs: runs-on: ubuntu-latest env: RUSTDOCFLAGS: -D warnings steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Install minimal stable - uses: actions-rs/toolchain@v1 - with: - profile: default - toolchain: stable - override: true - - uses: Swatinem/rust-cache@v2 + uses: actions-rust-lang/setup-rust-toolchain@v1 - name: build docs run: cargo doc + build: runs-on: ${{ matrix.os }} strategy: @@ -65,18 +55,16 @@ jobs: - ubuntu-latest - windows-latest steps: - - uses: actions/checkout@v3 - - name: Install minimal stable with clippy and rustfmt - uses: actions-rs/toolchain@v1 + - uses: actions/checkout@v4 + - name: Install minimal stable with clippy + uses: actions-rust-lang/setup-rust-toolchain@v1 with: - profile: default - toolchain: stable - override: true - - uses: Swatinem/rust-cache@v2 + components: clippy - name: build and lint with clippy run: cargo clippy --benches --tests --all-features -- -D warnings - name: lint without default features run: cargo clippy --no-default-features -- -D warnings + test: runs-on: ${{ matrix.os }} strategy: @@ -86,14 +74,9 @@ jobs: - ubuntu-latest - windows-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Install minimal stable with clippy and rustfmt - uses: actions-rs/toolchain@v1 - with: - profile: default - toolchain: stable - override: true - - uses: Swatinem/rust-cache@v2 + uses: actions-rust-lang/setup-rust-toolchain@v1 - name: test run: cargo test --workspace --verbose --all-features -- --skip read_table_version_hdfs @@ -186,14 +169,9 @@ jobs: steps: - uses: actions/checkout@v4 - name: Install rust - uses: actions-rs/toolchain@v1 - with: - profile: default - toolchain: stable - override: true + uses: actions-rust-lang/setup-rust-toolchain@v1 - name: Install cargo-llvm-cov uses: taiki-e/install-action@cargo-llvm-cov - - uses: Swatinem/rust-cache@v2 - name: Generate code coverage run: cargo llvm-cov --all-features --workspace --codecov --output-path codecov.json -- --skip read_table_version_hdfs - name: Upload coverage to Codecov diff --git a/.github/workflows/run_integration_test.yml b/.github/workflows/run_integration_test.yml index 1ff681cf6..73ffd599c 100644 --- a/.github/workflows/run_integration_test.yml +++ b/.github/workflows/run_integration_test.yml @@ -18,17 +18,11 @@ jobs: - name: Skip job for pull requests on Windows if: ${{ matrix.skip }} run: echo "Skipping job for pull requests on Windows." - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 if: ${{ !matrix.skip }} - - name: Install minimal stable rust - if: ${{ !matrix.skip }} - uses: actions-rs/toolchain@v1 - with: - profile: default - toolchain: stable - override: true - - uses: Swatinem/rust-cache@v2 + - name: Setup rust toolchain if: ${{ !matrix.skip }} + uses: actions-rust-lang/setup-rust-toolchain@v1 - name: Run integration tests if: ${{ !matrix.skip }} shell: bash diff --git a/.github/workflows/semver-checks.yml b/.github/workflows/semver-checks.yml index 3f0374452..7bd39b167 100644 --- a/.github/workflows/semver-checks.yml +++ b/.github/workflows/semver-checks.yml @@ -25,12 +25,7 @@ jobs: fetch-depth: 0 ref: ${{ github.event.pull_request.head.sha }} - name: Install minimal stable - uses: actions-rs/toolchain@v1 - with: - profile: default - toolchain: stable - override: true - - uses: Swatinem/rust-cache@v2 + uses: actions-rust-lang/setup-rust-toolchain@v1 - name: Install cargo-semver-checks shell: bash run: | diff --git a/kernel/src/engine/arrow_data.rs b/kernel/src/engine/arrow_data.rs index 7c2dd5f40..17f2662c6 100644 --- a/kernel/src/engine/arrow_data.rs +++ b/kernel/src/engine/arrow_data.rs @@ -6,7 +6,7 @@ use arrow_array::cast::AsArray; use arrow_array::types::{Int32Type, Int64Type}; use arrow_array::{Array, ArrayRef, GenericListArray, MapArray, OffsetSizeTrait, RecordBatch, StructArray}; use arrow_schema::{FieldRef, DataType as ArrowDataType}; -use tracing::{debug}; +use tracing::debug; use std::collections::{HashMap, HashSet};