zhangy5 opened a new issue, #11425:
URL: https://github.com/apache/doris/issues/11425

   ### 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.
   
   
   ### Version
   
   master
   trunk-27a1911
   
   ### What's Wrong?
   
   mysql> CREATE TABLE `ds` (
       ->   `tinyint_key` tinyint(4) NOT NULL,
       ->   `char_50_key` char(50) NOT NULL,
       ->   `character_key` varchar(500) NOT NULL
       -> ) ENGINE=OLAP
       -> AGGREGATE KEY(`tinyint_key`, `char_50_key`, `character_key`)
       -> COMMENT 'OLAP'
       -> DISTRIBUTED BY HASH(`tinyint_key`) BUCKETS 10
       -> PROPERTIES (
       -> "replication_allocation" = "tag.location.default: 3",
       -> "in_memory" = "false",
       -> "storage_format" = "V2"
       -> );
   Query OK, 0 rows affected (0.03 sec)
   
   mysql> insert into ds values(1, 'dddd', 'adgs'), (1, 'SSS', 'sk6S0'), (1, 
'ttt', 'zdges');
   Query OK, 3 rows affected (0.05 sec)
   {'label':'insert_83f8df857b5f4c59_832de8b483dac445', 'status':'VISIBLE', 
'txnId':'17869'}
   
   mysql> select * from ds;
   +-------------+-------------+---------------+
   | tinyint_key | char_50_key | character_key |
   +-------------+-------------+---------------+
   |           1 | SSS         | sk6S0         |
   |           1 | dddd        | adgs          |
   |           1 | ttt         | zdges         |
   +-------------+-------------+---------------+
   3 rows in set (0.04 sec)
   
   mysql> select * FROM ds where character_key < "sk6S0";
   +-------------+-------------+---------------+
   | tinyint_key | char_50_key | character_key |
   +-------------+-------------+---------------+
   |           1 | dddd        | adgs          |
   +-------------+-------------+---------------+
   1 row in set (0.04 sec)
   
   mysql> delete from ds where character_key < "sk6S0";
   Query OK, 0 rows affected (0.05 sec)
   {'label':'delete_539bdcec-b49a-4b3e-9919-a31bce17d6a6', 'status':'VISIBLE', 
'txnId':'17870'}
   
   mysql> select * from ds;
   +-------------+-------------+---------------+
   | tinyint_key | char_50_key | character_key |
   +-------------+-------------+---------------+
   |           1 | SSS         | sk6S0         |
   |           1 | dddd        | adgs          |
   |           1 | ttt         | zdges         |
   +-------------+-------------+---------------+
   3 rows in set (0.04 sec)
   
   ### What You Expected?
   
   delete result right
   
   ### How to Reproduce?
   
   _No response_
   
   ### Anything Else?
   
   _No response_
   
   ### Are you willing to submit PR?
   
   - [ ] 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: commits-unsubscr...@doris.apache.org.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