-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
[Rust] COUNT(*) schema name is COUNT(UInt8) #104
Comments
Hi @alamb it's an old ticket but could I ask for some more details so I could try working on it?
with output showing I have found |
Hi @qrilka 👋 thanks! I think the idea was to follow the same convention as the rest of the code so the column name more closely matches the SQL expression that was typed in So in this case, I think the expected behavior would be
Or something similar |
This mirrors what happens with non wildcard queries
|
Thanks @alamb |
I wonder if you can simply add an alias like |
Oh, cool idea, I didn't think about that - I think it could be just added into |
@alamb after some debugging I have found that we could just change COUNT_STAR_NAME to "COUNT(*)" and everything works fine and tests need to be fixed.
Will create a PR with this fix |
This fixes the issue of column name COUNT(UInt8) appearing instead Resolves apache#104
This fixes the issue of column name COUNT(UInt8) appearing instead Resolves #104
Note: migrated from original JIRA: https://issues.apache.org/jira/browse/ARROW-10170
Currently, the query {{COUNT()}} is being converted to {{COUNT(1)}} during logical planning, which causes the field's name to be {{COUNT(1)}}, not {{COUNT()}}
One idea is to delay the map for the physical planning, when naming is no longer an issue.
The text was updated successfully, but these errors were encountered: