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

   ### Search before asking
   
   - [X] I had searched in the 
[issues](https://github.com/apache/doris/issues?q=is%3Aissue) and found no 
similar issues.
   
   
   ### Version
   
   2.0.3
   
   ### What's Wrong?
   
   can not delete by column with float/double type
   
   ### What You Expected?
   
   fix it
   
   ### How to Reproduce?
   
   CREATE TABLE `aaa` (
     `empno` int(11) NULL,
     `ename` varchar(255) NULL,
     `job` varchar(255) NULL,
     `c1` float,
     `c2` double,
     `c3` decimal
   ) ENGINE=OLAP
   DUPLICATE KEY(`empno`)
   COMMENT 'OLAP'
   DISTRIBUTED BY HASH(`empno`) BUCKETS 1;
   
   insert into aaa values (1, 'James', 'SALARY', 11.1, 22.2, 33.3);
   
   delete from aaa where c1 < 10;-- error:Left expr of binary predicate should 
be column name, predicate: CAST(`c1` AS DOUBLE) < 10, left expr type:DOUBLE
   delete from aaa where c2 < 10;-- error:Column[c2] type is float or double.
   delete from aaa where c3 < 10;-- ok
   
   ### Anything Else?
   
   _No response_
   
   ### 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