You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@datafusion.apache.org by "itsjunetime (via GitHub)" <gi...@apache.org> on 2024/07/10 16:16:20 UTC

[I] `This context requires a statement!` error message can be confusing [datafusion]

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-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] `This context requires a statement!` error message can be confusing [datafusion]

Posted by "alamb (via GitHub)" <gi...@apache.org>.
alamb closed issue #11393: `This context requires a statement!` error message can be confusing
URL: https://github.com/apache/datafusion/issues/11393


-- 
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