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

[Enhancement] count_distinct make column prune failed when nereid is disabled #36517

Open
2 of 3 tasks
hqx871 opened this issue Jun 19, 2024 · 0 comments
Open
2 of 3 tasks

Comments

@hqx871
Copy link
Contributor

hqx871 commented Jun 19, 2024

Search before asking

  • I had searched in the issues and found no similar issues.

Description

I have read the AggregateInfo and get that count_distinct make column prune failed, but I would like to know how count_distinct will affect the aggregating exprs materialized

   /**
     * Mark slots required for this aggregation as materialized:
     * - all grouping output slots as well as grouping exprs
     * - for non-distinct aggregation: the aggregate exprs of materialized aggregate slots;
     *   this assumes that the output slots corresponding to aggregate exprs have already
     *   been marked by the consumer of this select block
     * - for distinct aggregation, we mark all aggregate output slots in order to keep
     *   things simple
     * Also computes materializedAggregateExprs.
     * This call must be idempotent because it may be called more than once for Union stmt.
     */

Solution

No response

Are you willing to submit PR?

  • Yes I am willing to submit a PR!

Code of Conduct

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant