Skip to content

Commit 4ee8428

Browse files
add sqllogictest to ci
1 parent d8a3be3 commit 4ee8428

File tree

2 files changed

+28
-0
lines changed

2 files changed

+28
-0
lines changed

.github/workflows/ci.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,15 @@ jobs:
4040
- uses: ./.github/actions/setup
4141
- run: cargo test --features tpch --test tpch_validation_test
4242

43+
sqllogictest:
44+
runs-on: ubuntu-latest
45+
steps:
46+
- uses: actions/checkout@v4
47+
with:
48+
lfs: true
49+
- uses: ./.github/actions/setup
50+
- run: tests/run_sqllogictest.sh
51+
4352
format-check:
4453
runs-on: ubuntu-latest
4554
steps:

tests/run_sqllogictest.sh

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
#!/bin/bash
2+
3+
# SQLLogicTest runner script for DataFusion Distributed
4+
# This script runs the sqllogictest CLI against our test files to verify
5+
# that distributed query execution produces expected results.
6+
7+
set -e # Exit on any error
8+
9+
echo "Running SQLLogicTest for DataFusion Distributed..."
10+
11+
# Test basic queries (aggregations, filtering, etc.)
12+
echo "Testing basic queries..."
13+
cargo run --features integration --bin logictest -- tests/sqllogictest/basic_queries.slt
14+
15+
# Test EXPLAIN queries (distributed physical plans)
16+
echo "Testing EXPLAIN queries..."
17+
cargo run --features integration --bin logictest -- tests/sqllogictest/explain.slt
18+
19+
echo "All SQLLogicTests passed! ✅"

0 commit comments

Comments
 (0)