ChPi opened a new issue #8128:
URL: https://github.com/apache/incubator-doris/issues/8128


   ### Search before asking
   
   - [X] I had searched in the 
[issues](https://github.com/apache/incubator-doris/issues?q=is%3Aissue) and 
found no similar issues.
   
   
   ### Description
   
   query like `select count(*) from table [partition p1]`, and all tablets  
meet below conditions
   1、no delete rowset
   2、rowset is non-overlapping
   3、only one rowset has data
   return direct row_number in catalog
   
   ### Solution
   
   1、be reports tablet which is nonoverlapping on report tablets task.
   2、fe marks partition nonoverlapping if all tablets of it are nonoverlapping
   3、check visible version time before report time
   4、rewrite `select count(*) from table` to `select count(*)+123 from table 
partition p2`, 123 is the row_number which partition is nonoverlapping
   
   
   ### Are you willing to submit PR?
   
   - [X] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [X] I agree to follow this project's [Code of 
Conduct](https://www.apache.org/foundation/policies/conduct)
   


-- 
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]

Reply via email to