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

[opt](optimizer) Remove unused code to unify code #38918

Merged
merged 1 commit into from
Aug 6, 2024

Conversation

liutang123
Copy link
Contributor

@liutang123 liutang123 commented Aug 6, 2024

Proposed changes

Now, Agg's child predicates will not spread to agg.
For example:
select a, sum(b)
from (
select a,b from t where a = 1 and b = 2
) t
group by a
a = 1 in scan can be propagated to a of agg.
But b = 2 in scan can not be propagated to sum(b) of agg.

Issue Number: #38905

Now, Agg's child predicates will  not spread to agg.
For example:
select a, sum(b)
from (
 select a,b from t where a = 1 and b = 2
) t
group by a
`a = 1` in scan can be propagated to `a` of agg.
But `b = 2` in scan can not be propagated to `sum(b)` of agg.
@doris-robot
Copy link

Thank you for your contribution to Apache Doris.
Don't know what should be done next? See How to process your PR

Since 2024-03-18, the Document has been moved to doris-website.
See Doris Document.

@liutang123 liutang123 requested a review from 924060929 August 6, 2024 02:56
@liutang123
Copy link
Contributor Author

run buildall

@liutang123 liutang123 merged commit 07ea511 into apache:branch-2.1 Aug 6, 2024
22 of 23 checks passed
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

Successfully merging this pull request may close these issues.

2 participants