Skip to content

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

Merged
liutang123 merged 1 commit intoapache:branch-2.1from
liutang123:38905-2.1
Aug 6, 2024
Merged

[opt](optimizer) Remove unused code to unify code#38918
liutang123 merged 1 commit intoapache:branch-2.1from
liutang123:38905-2.1

Conversation

@liutang123
Copy link
Copy Markdown
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
Copy Markdown

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
Copy Markdown
Contributor Author

run buildall

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