Skip to content

Apache DataFusion SQL Query Engine

Minor: fix CI to make the sqllogic testing result consistent (#15059)

Qi Zhu24586938518d
diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml
index 99aaa7d6f2..f37e5c9f7e 100644
--- a/.github/workflows/rust.yml
+++ b/.github/workflows/rust.yml
@@ -295,7 +295,7 @@ jobs:
export RUST_MIN_STACK=20971520
export TPCH_DATA=`realpath datafusion/sqllogictest/test_files/tpch/data`
cargo test plan_q --package datafusion-benchmarks --profile ci --features=ci -- --test-threads=1
- INCLUDE_TPCH=true cargo test --profile ci --package datafusion-sqllogictest --test sqllogictests
+ INCLUDE_TPCH=true cargo test --features backtrace --profile ci --package datafusion-sqllogictest --test sqllogictests
- name: Verify Working Directory Clean
run: git diff --exit-code
@@ -331,7 +331,7 @@ jobs:
- name: Run sqllogictest
run: |
cd datafusion/sqllogictest
- PG_COMPAT=true PG_URI="postgresql://postgres:postgres@$POSTGRES_HOST:$POSTGRES_PORT/db_test" cargo test --profile ci --features=postgres --test sqllogictests
+ PG_COMPAT=true PG_URI="postgresql://postgres:postgres@$POSTGRES_HOST:$POSTGRES_PORT/db_test" cargo test --features backtrace --profile ci --features=postgres --test sqllogictests
env:
# use postgres for the host here because we have specified a container for the job
POSTGRES_HOST: postgres
diff --git a/datafusion/sqllogictest/Cargo.toml b/datafusion/sqllogictest/Cargo.toml
index 22223d23e1..33abe77032 100644
--- a/datafusion/sqllogictest/Cargo.toml
+++ b/datafusion/sqllogictest/Cargo.toml
@@ -66,6 +66,7 @@ tokio-postgres = { version = "0.7.12", optional = true }
[features]
avro = ["datafusion/avro"]
+backtrace = ["datafusion/backtrace"]
postgres = [
"bytes",
"chrono",