This is an automated email from the ASF dual-hosted git repository.

yiguolei pushed a commit to branch branch-3.0
in repository https://gitbox.apache.org/repos/asf/doris.git


The following commit(s) were added to refs/heads/branch-3.0 by this push:
     new a1c8765ff34 [fix](nereids) convert stringLikeLiteral to double should 
use byte length (#43776) branch-3.0 (#43912)
a1c8765ff34 is described below

commit a1c8765ff34ca5a495bf3740299bd21d1de3895c
Author: minghong <[email protected]>
AuthorDate: Thu Nov 14 11:16:32 2024 +0800

    [fix](nereids) convert stringLikeLiteral to double should use byte length 
(#43776) branch-3.0 (#43912)
    
    ### What problem does this PR solve?
    pick #43776
    
    The optimizer maps different data types to Double, allowing for a
    unified comparison of literals.
    StringLikeLiteral is regarded as a long int, and map the long int to
    double.
    To extract the first N bytes from a string, you should use
    String.getBytes().length instead of String.length().


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to