Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

This context requires a statement! error message can be confusing #11393

Closed
itsjunetime opened this issue Jul 10, 2024 · 0 comments · Fixed by #11394
Closed

This context requires a statement! error message can be confusing #11393

itsjunetime opened this issue Jul 10, 2024 · 0 comments · Fixed by #11394
Labels
bug Something isn't working

Comments

@itsjunetime
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant