zclllhhjj
163193b1d4
[branch-2.1](function) fix random_bytes return same data for multi rows (#39891) (#40137)
pick https://github.com/apache/doris/pull/39891
Issue Number: close #xxx
before:
```sql
mysql [optest]>SELECT random_bytes(10) a FROM numbers("number" = "10");
+------------------------+
| a |
+------------------------+
| 0x7b4e5727024bc5b59e2c |
| 0x7b4e5727024bc5b59e2c |
| 0x7b4e5727024bc5b59e2c |
| 0x7b4e5727024bc5b59e2c |
| 0x7b4e5727024bc5b59e2c |
| 0x7b4e5727024bc5b59e2c |
| 0x7b4e5727024bc5b59e2c |
| 0x7b4e5727024bc5b59e2c |
| 0x7b4e5727024bc5b59e2c |
| 0x7b4e5727024bc5b59e2c |
+------------------------+
```
now:
```sql
mysql [optest]>SELECT random_bytes(10) a FROM numbers("number" = "10");
+------------------------+
| a |
+------------------------+
| 0xd82cf60825b29ef2a0fd |
| 0x6f8c808415bdbaa6d257 |
| 0x7c26b5214297a151c25c |
| 0x43f02c77293063900437 |
| 0x5e5727569dec5e24f96b |
| 0x434f20bf74d7759640b7 |
| 0x087ed96b739750c733a6 |
| 0xdf05f6d7ede4972eb846 |
| 0xcefab471912264b5c54f |
| 0x1bddc019409d1926aa10 |
+------------------------+
```
## Proposed changes
Issue Number: close #xxx
<!--Describe your changes.-->
2024-08-30 10:43:42 +08:00
..
2024-08-06 08:52:03 +08:00
2024-08-14 18:52:29 +08:00
2024-05-10 22:11:01 +08:00
2024-01-16 18:30:23 +08:00
2024-07-09 10:11:50 +08:00
2024-05-24 16:23:58 +08:00
2024-08-25 08:45:36 +08:00
2023-09-20 17:21:45 +08:00
2024-02-23 19:03:28 +08:00
2024-04-24 17:13:50 +08:00
2023-06-05 19:06:50 +08:00
2024-08-17 10:56:06 +08:00
2024-08-27 08:03:48 +08:00
2024-08-28 21:31:08 +08:00
2024-07-25 12:06:21 +08:00
2023-05-11 01:13:13 +08:00
2023-11-01 23:48:55 +08:00
2023-04-21 15:11:18 +08:00
2024-08-30 10:43:42 +08:00
2024-07-09 10:11:50 +08:00
2024-08-27 14:53:17 +08:00
2023-09-20 20:37:22 +08:00
2024-02-16 10:16:40 +08:00
2024-03-12 14:19:14 +08:00
2023-05-22 18:32:17 +08:00