-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
Aggregate pushdown for count(const) or count(non null) in JDBC connectors #4362
Comments
We have |
It looks like we run |
@kokosing How can we test the dependency of the rules? We can use |
I think we need to add this case to |
@kokosing assertPushedDown("SELECT count(*) FROM nation"); // Aggregation pushdown happens
assertPushedDown("SELECT count(1) FROM nation"); // It does not happen
Do you have any idea why aggregation for |
@alexjo2144 Thanks! I confirmed putting the |
Aggregate pushdown currently doesn't support the following use case when the count is done on a constant value.
select count(1) from jdbcdb.schema.table;
Current aggregate pushdown implementation generates this query on the datasource side -
select 1 from schema.table;
.Instead we like to see -
select count(1) from schema.table;
or a flavor of it with count operation pushed down.More details are here - slack link
The text was updated successfully, but these errors were encountered: