From 43ef89ffeda29654a1706159f81ecea5f0a6a3e4 Mon Sep 17 00:00:00 2001 From: DreaMer963 Date: Thu, 3 Feb 2022 22:57:03 +0800 Subject: [PATCH] add to ci --- .github/workflows/rust.yml | 10 ++++++++-- datafusion/src/physical_plan/tdigest/mod.rs | 1 - 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 4b633d4bc9e56..60aea94920046 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -58,12 +58,18 @@ jobs: rustup toolchain install ${{ matrix.rust }} rustup default ${{ matrix.rust }} rustup component add rustfmt - - name: Build Workspace + - name: Build workspace in debug mode run: | cargo build env: CARGO_HOME: "/github/home/.cargo" - CARGO_TARGET_DIR: "/github/home/target" + CARGO_TARGET_DIR: "/github/home/target/debug" + - name: Build workspace in release mode + run: | + cargo build --release + env: + CARGO_HOME: "/github/home/.cargo" + CARGO_TARGET_DIR: "/github/home/target/release" - name: Check DataFusion Build without default features run: | cargo check --no-default-features -p datafusion diff --git a/datafusion/src/physical_plan/tdigest/mod.rs b/datafusion/src/physical_plan/tdigest/mod.rs index 603cfd867c48f..6780adc84cd1c 100644 --- a/datafusion/src/physical_plan/tdigest/mod.rs +++ b/datafusion/src/physical_plan/tdigest/mod.rs @@ -266,7 +266,6 @@ impl TDigest { } fn merge_sorted_f64(&self, sorted_values: &[OrderedFloat]) -> TDigest { - #[cfg(debug_assertions)] debug_assert!(is_sorted(sorted_values), "unsorted input to TDigest"); if sorted_values.is_empty() {