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

   ## Proposed changes
   ```
   set enable_fold_constant_by_be = true;
   DELETE FROM test  WHERE col_2 = cast(123.45 as decimalv3(10,3));
   ERROR 1105 (HY000): errCode = 2, detailMessage = errCode = 2, detailMessage 
= Right expr of binary predicate should be value, predicate: `col_2` = 
CAST(CAST(123.45 AS DECIMALV3(10, 3)) AS DECIMAL(10, 3)), right expr 
type:DECIMAL(10, 3)
   
   exprRewriter.rewrite() function will not apply when:
         if (rule instanceof FoldConstantsRule && 
analyzer.safeIsEnableFoldConstantByBe()) {
             continue;
         }
   ```
   
   
   Issue Number: close #xxx
   
   <!--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