seawinde opened a new pull request, #40803:
URL: https://github.com/apache/doris/pull/40803

   ## Proposed changes
   
   This is brought by https://github.com/apache/doris/pull/36056
   
   Not all query after rewritten successfully can compensate union all
   Such as:
   mv def sql is as following, partition column is a
   ```sql
   select a, b, count(*) from t1 group by a, b
   ```
   Query is as following:
   ```sq
   select count(*) from t1
   ```
   the result is
   +----------+
   | count(*) |
   +----------+
   |       24 |
   +----------+
   
   after rewritten by materialized view successfully
   If mv part partition is invalid, can not compensate union all, because 
result is wrong after
   compensate union all.
   
   +----------+
   | count(*) |
   +----------+
   |       24 |
   |       3 |
   +----------+
   
   This pr fix this.
   


-- 
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: commits-unsubscr...@doris.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org
For additional commands, e-mail: commits-h...@doris.apache.org

Reply via email to