You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@datafusion.apache.org by "zhuqi-lucas (via GitHub)" <gi...@apache.org> on 2025/06/06 08:30:30 UTC
[I] sqllogictest -- complete to generate substring instead of all errors [datafusion]
zhuqi-lucas opened a new issue, #16284:
URL: https://github.com/apache/datafusion/issues/16284
### Describe the bug
See details:
https://github.com/apache/datafusion/pull/16251#issuecomment-2945038255
sqllogictest -- complete to generate substring instead of all errors, now -- complete will generate all errors, it's not consistent with CI sqllogictest for some cases, we can strictly use first line as the result for the first step.
### To Reproduce
_No response_
### Expected behavior
_No response_
### Additional context
_No response_
--
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.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: [I] sqllogictest -- complete to generate substring instead of all errors [datafusion]
Posted by "Sigma-Ma (via GitHub)" <gi...@apache.org>.
Sigma-Ma commented on issue #16284:
URL: https://github.com/apache/datafusion/issues/16284#issuecomment-5213739656
Hi @alamb and @zhuqi-lucas, I started working on this issue and reproduced it on the current main branch.
I first tried making `--complete` use only `error.to_string().lines().next()`, so sqllogictest would generate an inline regex rather than an exact multiline error.
However, the first line itself is no longer stable between builds:
Without the `backtrace` feature, the first line contains multiple collected planning errors:
... requires Float ...,Error during planning: ... expects 4 arguments ...
With `RUST_BACKTRACE=1` and the `backtrace` feature, the first line stops after the first collected error:
... requires Float ...
Therefore, generating the complete first line locally still does not match the CI error.
At the sqllogictest completion boundary, this is already flattened into `DataFusionError::Plan(String)`, so selecting the first underlying error would require either parsing the formatted string or preserving/providing a structured error summary earlier.
Which direction would you prefer?
1. Implement the original first-line behavior as a best-effort improvement.
2. Add a structured/stable error-summary hook and use it during completion.
3. Require completion runs to use the same backtrace feature/environment as CI.
I prefer option 2 because it avoids depending on formatted error strings, but it is a larger change.
--
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: [I] sqllogictest -- complete to generate substring instead of all errors [datafusion]
Posted by "Sigma-Ma (via GitHub)" <gi...@apache.org>.
Sigma-Ma commented on issue #16284:
URL: https://github.com/apache/datafusion/issues/16284#issuecomment-5202570723
take
--
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: [I] sqllogictest -- complete to generate substring instead of all errors [datafusion]
Posted by "alamb (via GitHub)" <gi...@apache.org>.
alamb commented on issue #16284:
URL: https://github.com/apache/datafusion/issues/16284#issuecomment-5215625798
> With RUST_BACKTRACE=1 and the backtrace feature, the first line stops after the first collected error:
Yeah I find this behavior (the difference when the backtraces are present / not) to be very confusing for sqllogictests
Ideally in my mind the sqllogictest test harness would somehow strip out backtraces if they appear from the messages -- I am not sure if this is possible
--
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