itsjunetime opened a new issue, #11393: URL: https://github.com/apache/datafusion/issues/11393
### Describe the bug When a query which contains no SQL statements inside it is processed, datafusion returns an error which states `The context requires a statement!` - this can be seen [here](https://github.com/apache/datafusion/blob/main/datafusion/core/src/execution/session_state.rs#L556-L560). This error string can be confusing as it doesn't exactly point directly to what the issue is or what the user could do to get around this error. ### To Reproduce _No response_ ### Expected behavior There should be a much clearer error message that tells the user information which is more actionable, that they can then use to fix their query/usage of datafusion. ### 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-unsubscr...@datafusion.apache.org.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: github-unsubscr...@datafusion.apache.org For additional commands, e-mail: github-h...@datafusion.apache.org