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

   ## Proposed changes
   
   Issue Number: close #xxx
   Probrem: `select...from tablets()` are invalidated when there exists 
predicates, such as:
   ```sql
   // The all data is:
   mysql> select * from student3;
   +------+------+------+
   | id   | name | age  |
   +------+------+------+
   |    1 | ftw  |   18 |
   |    3 | yy   |   19 |
   |    4 | xx   |   21 |
   |    2 | cyx  |   20 |
   +------+------+------+
   
   // when we specified tablet to read:
   mysql> select * from student3 tablet(131131);
   +------+------+------+
   | id   | name | age  |
   +------+------+------+
   |    1 | ftw  |   18 |
   |    3 | yy   |   19 |
   +------+------+------+
   
   // Howerver, when there exists predicates, the `tablet(131131)` is 
invalidated
   mysql> select * from student3 tablet(131131) where id > 1;
   +------+------+------+
   | id   | name | age  |
   +------+------+------+
   |    4 | xx   |   21 |
   |    3 | yy   |   19 |
   |    2 | cyx  |   20 |
   +------+------+------+
   ```
   
   After the fix, we get promising data
   ```sql
   mysql> select * from student3 tablet(131131) where id > 1;
   +------+------+------+
   | id   | name | age  |
   +------+------+------+
   |    3 | yy   |   19 |
   +------+------+------+
   ```
   
   
   
   
   <!--Describe your changes.-->
   
   ## 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]

Reply via email to