You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@datafusion.apache.org by "alexandrefimov (via GitHub)" <gi...@apache.org> on 2026/09/01 16:40:53 UTC
[PR] docs: the Substrait round-trip test command needs the substrait feature [datafusion]
alexandrefimov opened a new pull request, #24855:
URL: https://github.com/apache/datafusion/pull/24855
## Which issue does this PR close?
None — the documented command does not run, so this is a straight documentation fix.
## Rationale for this change
The sqllogictest README documents the Substrait round-trip mode as
```shell
cargo test --test sqllogictests -- --substrait-round-trip
```
but the round-trip path is behind the `substrait` feature, which is not in `default`. Run as documented, every file fails with `Cannot run substrait round-trip: the 'substrait' feature is not enabled` — 505 of them on today's `main`, which reads as the mode being thoroughly broken rather than as a missing flag.
The same section points at #16248 for the failures. That epic is now 16 of its 21 sub-issues closed, while the mode still fails on classes it never listed, so the sentence promises more than the link delivers.
## What changes are included in this PR?
Both documented commands get `--features substrait`, and the warning says where the mode lives and that #16248 collects some of the failures rather than all of them.
## What is the testing strategy for this PR?
Ran both documented forms on `main` with the flag: the full form completes the suite and the `binary.slt` filter runs three files. `ci/scripts/doc_prettier_check.sh` passes.
## Are there any user-facing changes?
Documentation only.
--
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: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] docs: fix the Substrait round-trip instructions in the sqllogictest README [datafusion]
Posted by "kosiew (via GitHub)" <gi...@apache.org>.
kosiew commented on PR #24855:
URL: https://github.com/apache/datafusion/pull/24855#issuecomment-5616104231
🚀
@alexandrefimov
Thank you for your contribution.
--
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: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] docs: fix the Substrait round-trip instructions in the sqllogictest README [datafusion]
Posted by "codecov-commenter (via GitHub)" <gi...@apache.org>.
codecov-commenter commented on PR #24855:
URL: https://github.com/apache/datafusion/pull/24855#issuecomment-5594965921
## [Codecov](https://app.codecov.io/gh/apache/datafusion/pull/24855?dropdown=coverage&src=pr&el=h1&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) Report
:white_check_mark: All modified and coverable lines are covered by tests.
:white_check_mark: Project coverage is 81.74%. Comparing base ([`da89c7c`](https://app.codecov.io/gh/apache/datafusion/commit/da89c7c85b1c888ba4038317eacbdcfe03ab9b1a?dropdown=coverage&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache)) to head ([`b82646f`](https://app.codecov.io/gh/apache/datafusion/commit/b82646f034713e432bdb19980cb98f4819084062?dropdown=coverage&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache)).
:warning: Report is 100 commits behind head on main.
<details><summary>Additional details and impacted files</summary>
```diff
@@ Coverage Diff @@
## main #24855 +/- ##
==========================================
+ Coverage 81.60% 81.74% +0.14%
==========================================
Files 1123 1128 +5
Lines 408898 416644 +7746
Branches 408898 416644 +7746
==========================================
+ Hits 333670 340578 +6908
- Misses 55625 56004 +379
- Partials 19603 20062 +459
```
</details>
[:umbrella: View full report in Codecov by Harness](https://app.codecov.io/gh/apache/datafusion/pull/24855?dropdown=coverage&src=pr&el=continue&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache).
:loudspeaker: Have feedback on the report? [Share it here](https://about.codecov.io/codecov-pr-comment-feedback/?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache).
<details><summary> :rocket: New features to boost your workflow: </summary>
- :snowflake: [Test Analytics](https://docs.codecov.com/docs/test-analytics): Detect flaky tests, report on failures, and find test suite problems.
- :package: [JS Bundle Analysis](https://docs.codecov.com/docs/javascript-bundle-analysis): Save yourself from yourself by tracking and limiting bundle sizes in JS merges.
</details>
--
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: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] docs: fix the Substrait round-trip instructions in the sqllogictest README [datafusion]
Posted by "alexandrefimov (via GitHub)" <gi...@apache.org>.
alexandrefimov commented on PR #24855:
URL: https://github.com/apache/datafusion/pull/24855#issuecomment-5583935254
Thanks, @kosiew. Updated both phrases in b82646f03 to refer to the selected files and the default suite.
I left the optional `--help` check for a follow-up, since it would not catch the missing-feature error at test execution. The existing `limit.slt` CI step exercises the round-trip path.
Local formatting and all-feature Clippy passed. The new CI runs show `action_required`; could a committer approve them?
--
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: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] docs: fix the Substrait round-trip instructions in the sqllogictest README [datafusion]
Posted by "kosiew (via GitHub)" <gi...@apache.org>.
kosiew commented on code in PR #24855:
URL: https://github.com/apache/datafusion/pull/24855#discussion_r3956658743
##########
datafusion/sqllogictest/README.md:
##########
@@ -397,17 +397,18 @@ generated DataFusion logical plan (SQL statement → DF logical → Substrait
Not all statements will be round-tripped, some statements like CREATE, INSERT, SET or EXPLAIN statements will be
issued as is, but any other statement will be round-tripped to/from Substrait.
-_WARNING_: as there are still a lot of failures in this mode (https://github.com/apache/datafusion/issues/16248),
-it is not enforced in the CI, instead, it needs to be run manually with the following command:
+_WARNING_: this mode lives behind the `substrait` feature, and the full suite still reports failures. CI therefore
+runs it over a single file, through `cargo xtask ci step test substrait`, which filters to `limit.slt`. Some of the
+failures are collected in https://github.com/apache/datafusion/issues/16248. To run it over every file:
Review Comment:
Could we avoid saying this runs over "every file"? The default runner still excludes `tpch` unless `INCLUDE_TPCH=true`, does not search the additional SQLite test directory unless `INCLUDE_SQLITE=true`, and skips `encrypted_parquet.slt` unless the `parquet_encryption` feature is enabled (`bin/sqllogictests.rs:983-1011`).
Since this PR is fixing the accuracy of the runbook, I suggest saying something like "every file selected by the default suite" instead. It would also be good to avoid "all the .slt test files" in the earlier wording for the same reason. Alternatively, the README could document the extra options and features needed to include those excluded suites.
##########
datafusion/sqllogictest/README.md:
##########
@@ -397,17 +397,18 @@ generated DataFusion logical plan (SQL statement → DF logical → Substrait
Not all statements will be round-tripped, some statements like CREATE, INSERT, SET or EXPLAIN statements will be
issued as is, but any other statement will be round-tripped to/from Substrait.
-_WARNING_: as there are still a lot of failures in this mode (https://github.com/apache/datafusion/issues/16248),
-it is not enforced in the CI, instead, it needs to be run manually with the following command:
+_WARNING_: this mode lives behind the `substrait` feature, and the full suite still reports failures. CI therefore
+runs it over a single file, through `cargo xtask ci step test substrait`, which filters to `limit.slt`. Some of the
+failures are collected in https://github.com/apache/datafusion/issues/16248. To run it over every file:
```shell
-cargo test --test sqllogictests -- --substrait-round-trip
+cargo test --test sqllogictests --features substrait -- --substrait-round-trip
Review Comment:
Optional suggestion: would it be worth adding a lightweight check that invokes the documented command with `--help`? For example, `cargo test --test sqllogictests --features substrait -- --help`. That could catch future drift in the Cargo feature or CLI spelling without running the intentionally failing round-trip suite. It would only validate that the command parses correctly, not which test files are selected.
--
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: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] docs: fix the Substrait round-trip instructions in the sqllogictest README [datafusion]
Posted by "kosiew (via GitHub)" <gi...@apache.org>.
kosiew merged PR #24855:
URL: https://github.com/apache/datafusion/pull/24855
--
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: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org