-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Improved error for expand wildcard rule #15004
Comments
I think this is a good first issue as the code will be relatively simple and it will introduce people to the DataFusion dev process |
take |
hi @alamb |
Yes please! |
Hi @alamb, seems the file that I'm working on (expand_wildcard_rule.rs) just has been deleted in 16 hours ago by Remove expand wildcard rule #15170, this means refactoring my current code into the new structure will take a bit longer—LOL. I’ll close my existing pull request and submit a new PR once I’ve merged it with the updated logic. Sorry for waiting |
Thanks for the update @Jiashu-Hu 🙏 I did verify that the error is still the same on main DataFusion CLI v46.0.0
> create table foo(a int, b int, c timestamp) as values (1,2,'2025-01-01T12:01:02');
SELECT *
FROM foo
WHERE c >= NOW() - INTERVAL '1 hour'
GROUP BY a;
0 row(s) fetched.
Elapsed 0.025 seconds.
Error during planning: Projection references non-aggregate values: Expression foo.b could not be resolved from available columns: foo.a |
Is your feature request related to a problem or challenge?
Found by @mhilton upstream in InfluxDB IOx
Running this query, results in a confusing error message
If you explicitly list out the column (
b
instead of*
) you get a better message:Describe the solution you'd like
I would like a better error
Perhaps something like
Bonus points for also improving the message
Error during planning: Projection references non-aggregate values: Expression foo.b could not be resolved from available columns: foo.a
Describe alternatives you've considered
No response
Additional context
Here is what DuckDB reports
Here is what postgres says
The text was updated successfully, but these errors were encountered: