-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Incorrect aggregation pushdown for case insensitive columns in JDBC some connectors #7320
Comments
Another example
|
@kokosing @wendigo This is a bit challenging to do correctly. The easiest case is if the grouping sets contain a text type then the connector can decide to prevent pushdown. This takes care of things like group by or distinct. For cases with a global aggregation (e.g. I've implemented a fix for the grouping sets case but for global aggregation I'm not sure about how we want to tackle this. It feels a bit "dirty" to add the concept of case-sensitivity vs not to engine representation of functions. Note that I can blanket disallow aggregation pushdown if the input to an aggregation function is a text type but that looks more heavy handed than necessary? Or should we tackle it as a follow-up? Another alternative is to add this logic to the aggregation function rewrite rules individually (e.g. ImplementMinMax) |
I was under impression it is about argument type. Can make a condition on information is type is case sensitive or not? Is |
Argument type alone doesn't mean pushdown will result in incorrect results. e.g. SELECT count(varchar) is safe to pushdown while SELECT max(varchar) is not. |
In MySql:
Possibly affects SQL Server and MemSql too.
The text was updated successfully, but these errors were encountered: