diff --git a/.github/workflows/extended.yml b/.github/workflows/extended.yml index 3dece9ebcc4cc..3837feb62226a 100644 --- a/.github/workflows/extended.yml +++ b/.github/workflows/extended.yml @@ -179,9 +179,4 @@ jobs: rust-version: stable - name: Run sqllogictest run: | - cargo test --features backtrace,parquet_encryption --profile release-nonlto --test sqllogictests -- --include-sqlite - cargo clean - - - - + cargo test --features backtrace,parquet_encryption --profile release --test sqllogictests -- --include-sqlite \ No newline at end of file diff --git a/Cargo.lock b/Cargo.lock index 23670a7877041..442839299174a 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2646,6 +2646,7 @@ dependencies = [ "indicatif", "itertools 0.14.0", "log", + "mimalloc", "object_store", "postgres-types", "regex", diff --git a/datafusion/sqllogictest/Cargo.toml b/datafusion/sqllogictest/Cargo.toml index b00fbe466728e..a3304d971f34b 100644 --- a/datafusion/sqllogictest/Cargo.toml +++ b/datafusion/sqllogictest/Cargo.toml @@ -54,6 +54,7 @@ half = { workspace = true, default-features = true } indicatif = "0.18" itertools = { workspace = true } log = { workspace = true } +mimalloc = { version = "0.1", default-features = false } object_store = { workspace = true } postgres-types = { version = "0.2.12", features = ["derive", "with-chrono-0_4"], optional = true } # When updating the following dependency verify that sqlite test file regeneration works correctly diff --git a/datafusion/sqllogictest/bin/sqllogictests.rs b/datafusion/sqllogictest/bin/sqllogictests.rs index b5a382ca6a832..2980f813ac249 100644 --- a/datafusion/sqllogictest/bin/sqllogictests.rs +++ b/datafusion/sqllogictest/bin/sqllogictests.rs @@ -15,6 +15,11 @@ // specific language governing permissions and limitations // under the License. +use mimalloc::MiMalloc; + +#[global_allocator] +static GLOBAL: MiMalloc = MiMalloc; + use clap::{ColorChoice, Parser, ValueEnum}; use datafusion::common::instant::Instant; use datafusion::common::utils::get_available_parallelism;