Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 13 additions & 2 deletions .github/workflows/extended.yml
Original file line number Diff line number Diff line change
Expand Up @@ -167,10 +167,21 @@ jobs:
uses: ./.github/actions/setup-builder
with:
rust-version: stable
- name: Build sqllogictest binary
run: |
# Cargo emits test binaries with hashed filenames under target/.../deps.
# We use head to pick the first matching sqllogictests artifact from the JSON stream.
TEST_BIN=$(cargo build --profile release-nonlto --features backtrace,parquet_encryption --package datafusion-sqllogictest --test sqllogictests --message-format=json | sed -n 's/.*"executable":"\([^"]*\)".*/\1/p' | head -n 1)
if [ -z "$TEST_BIN" ]; then
echo "Could not find sqllogictests test binary"
exit 1
fi
echo "TEST_BIN=$TEST_BIN" >> "$GITHUB_ENV"
- name: Run sqllogictest
working-directory: datafusion/sqllogictest
run: |
cargo test --features backtrace,parquet_encryption --profile release-nonlto --test sqllogictests -- --include-sqlite
cargo clean
# sqllogictests expects crate-relative paths for test data.
"$TEST_BIN" --include-sqlite



Expand Down
1 change: 1 addition & 0 deletions datafusion/physical-plan/src/analyze.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ use futures::StreamExt;

/// `EXPLAIN ANALYZE` execution plan operator. This operator runs its input,
/// discards the results, and then prints out an annotated plan with metrics
/// TEST
#[derive(Debug, Clone)]
pub struct AnalyzeExec {
/// Control how much extra to print
Expand Down
4 changes: 3 additions & 1 deletion datafusion/sqllogictest/bin/sqllogictests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -336,6 +336,7 @@ async fn run_test_file(
filters: &[Filter],
currently_executing_sql_tracker: CurrentlyExecutingSqlTracker,
) -> Result<()> {
let begin = Instant::now();
let TestFile {
path,
relative_path,
Expand Down Expand Up @@ -364,8 +365,9 @@ async fn run_test_file(
runner.with_column_validator(strict_column_validator);
runner.with_normalizer(value_normalizer);
runner.with_validator(validator);
let result = run_file_in_runner(path, runner, filters).await;
let result = run_file_in_runner(path.clone(), runner, filters).await;
pb.finish_and_clear();
println!("{},{}", path.display(), begin.elapsed().as_secs_f64());
result
}

Expand Down