NoahKusaba opened a new pull request, #2971: URL: https://github.com/apache/datafusion-ballista/pull/2971
# Which issue does this PR close? Part of #2945. # Rationale for this change DataFusion's sqllogictest files check far more SQL than Ballista's own tests do. Running them on standalone Ballista found the bugs now tracked in #2945. This PR makes the suite a checked-in test with a CI workflow, so fixes for those bugs can be verified and regressions are caught. # What changes are included in this PR? A new, unpublished crate `ballista/sqllogictest`: - The `sqllogictests` test (`harness = false`) runs every `.slt` file of a DataFusion checkout on plain DataFusion, on standalone Ballista with the static planner, and on standalone Ballista with the adaptive planner. Each file runs on each engine in a child process with a timeout, so a hang or a crash doesn't stop the run. It uses the published `datafusion-sqllogictest` crate, which is now a workspace dependency that moves with the other `datafusion*` entries. - Without `BALLISTA_SLT_DATAFUSION_DIR`, the test prints a notice and passes, so `cargo test` in the existing CI jobs needs no checkout. - `expected_failures.txt` lists the records known to fail, by file, engine, and line, with a reason (mostly issue numbers from #2945). A run fails only on records that fail and aren't listed. Listed records that pass are reported but don't fail the run. `--update-expected` rewrites the list for the files and engines that ran and keeps existing reasons. - Test-only codecs pass in-memory tables and `INSERT INTO` sinks to the in-process scheduler and executor by reference. Most files create their tables with `CREATE TABLE ... AS VALUES`, and without these codecs almost nothing would run. - `EXPLAIN` records are dropped by default, because Ballista's plans differ from DataFusion's. `EXPLAIN ANALYZE` still runs, but its output isn't checked. - The list parsing, checking, updating, and rendering live in the crate's library, with unit tests. There is a new workflow, `.github/workflows/sqllogictest.yml`. It runs nightly, on demand, and on PRs that change `ballista/sqllogictest/`. A full run takes about 40 minutes, so it isn't part of every PR. It checks out DataFusion at the revision or tag of `datafusion-sqllogictest` in `Cargo.lock`, with only the `testing` and `parquet-testing` submodules, and uploads the full report as an artifact. The contributor guide now explains how to run the suite and how to update the list, including after a DataFusion bump. The code-organization page lists the new crate. # Are there any user-facing changes? No. The new crate is `publish = false`. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
