You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@datafusion.apache.org by "Jefffrey (via GitHub)" <gi...@apache.org> on 2025/08/19 12:20:28 UTC
[PR] Configure cli test that requires backtrace to be optional [datafusion]
Jefffrey opened a new pull request, #17236:
URL: https://github.com/apache/datafusion/pull/17236
Running pure `cargo test` off main (no env vars or features set) results in error in test suite:
```
test test_backtrace_output::case_1 ... FAILED
test test_backtrace_output::case_2 ... FAILED
failures:
---- test_backtrace_output::case_1 stdout ----
thread 'test_backtrace_output::case_1' panicked at datafusion-cli/tests/cli_integration.rs:355:5:
Expected output to contain 'backtrace', but got stdout: 'Error: Error during planning: Failed to coerce arguments to satisfy a call to 'power' function: coercion from [Int64, Utf8] to the signature OneOf([Exact([Int64, Int64]), Exact([Float64, Float64])]) failed No function matches the given name and argument types 'power(Int64, Utf8)'. You might need to add explicit type casts.
Candidate functions:
power(Int64, Int64)
power(Float64, Float64)
' stderr: ''
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
---- test_backtrace_output::case_2 stdout ----
thread 'test_backtrace_output::case_2' panicked at datafusion-cli/tests/cli_integration.rs:355:5:
Expected output to contain 'backtrace', but got stdout: 'Error: Arrow error: Cast error: Cannot cast string 'not_a_number' to value of Int32 type
' stderr: ''
failures:
test_backtrace_output::case_1
test_backtrace_output::case_2
test result: FAILED. 20 passed; 2 failed; 0 ignored; 0 measured; 0 filtered out; finished in 1.55s
error: test failed, to rerun pass `-p datafusion-cli --test cli_integration`
```
Looks to be due to test introduced by #17204 which requires the backtrace feature. Place a `cfg` directive on that test so it won't run unless backtrace feature is enabled, so `cargo test` can succeed again.
--
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] Configure cli test that requires backtrace to be optional [datafusion]
Posted by "Jefffrey (via GitHub)" <gi...@apache.org>.
Jefffrey commented on PR #17236:
URL: https://github.com/apache/datafusion/pull/17236#issuecomment-3200534801
fyi @2010YOUY01
--
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] Configure cli test that requires backtrace to be optional [datafusion]
Posted by "2010YOUY01 (via GitHub)" <gi...@apache.org>.
2010YOUY01 merged PR #17236:
URL: https://github.com/apache/datafusion/pull/17236
--
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