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

   ## Proposed changes
   
   BE  : 2.0,FE : 1.2
   
   before
   
   ```
   mysql [(none)]>select elt(1, 'aaa', 'bbb');
   ERROR 1105 (HY000): errCode = 2, detailMessage = 
(127.0.0.1)[INTERNAL_ERROR]Function elt get failed, expr is 
VectorizedFnCall[elt](arguments=,return=String) and return type is String.
   
   mysql [test]> INSERT INTO tbb VALUES (1, repeat("test1111", 8192))(2, 
repeat("test1111", 131072));
   mysql [test]>select k1, md5(v1), length(v1) from tbb;
   +------+----------------------------------+--------------+
   | k1   | md5(`v1`)                        | length(`v1`) |
   +------+----------------------------------+--------------+
   | 1    | d41d8cd98f00b204e9800998ecf8427e |            0 |
   | 2    | d41d8cd98f00b204e9800998ecf8427e |            0 |
   +------+----------------------------------+--------------+
   
   ```
   
   now
   
   ```
   mysql [test]>select elt(1, 'aaa', 'bbb');
   +----------------------+
   | elt(1, 'aaa', 'bbb') |
   +----------------------+
   | aaa                  |
   +----------------------+
   
   mysql [test]>select k1, md5(v1), length(v1) from tbb;
   +------+----------------------------------+--------------+
   | k1   | md5(`v1`)                        | length(`v1`) |
   +------+----------------------------------+--------------+
   | 1    | 1f44fb91f47cab16f711973af06294a0 |        65536 |
   | 2    | 3c514d3b89e26e2f983b7bd4cbb82055 |      1048576 |
   +------+----------------------------------+--------------+
   ```
   <!--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