seawinde opened a new pull request, #30734:
URL: https://github.com/apache/doris/pull/30734
## Proposed changes
materialized view definition is as following, and the query sql is the same
when outer group by use the `col1` in the inner group, which can be
rewritten by materialized view
> select
> t1.o_orderdate,
> t1.o_orderkey,
> t1.col1
> from
> (
> select
> o_orderkey,
> o_custkey,
> o_orderstatus,
> o_orderdate,
> sum(o_shippriority) as col1
> from
> orders
> group by
> o_orderkey,
> o_custkey,
> o_orderstatus,
> o_orderdate
> ) as t1
> left join lineitem on lineitem.l_orderkey = t1.o_orderkey
> group by
> t1.o_orderdate,
> t1.o_orderkey,
> t1.col1
## Further comments
If this is a relatively large or complex change, kick off the discussion at
[[email protected]](mailto:[email protected]) by explaining why you
chose the solution you did and what alternatives you considered, etc...
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]