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-24 09:19:52 +08:00
2024-08-01 09:18:15 +08:00
2024-04-28 15:56:16 +08:00
2024-08-04 10:44:10 +08:00
2024-02-27 10:12:33 +08:00
2024-05-10 22:11:01 +08:00
2024-08-01 13:52:12 +08:00
2024-05-10 22:11:01 +08:00
2024-07-17 01:03:53 +08:00
2023-12-28 23:08:01 +08:00
2024-05-30 19:59:37 +08:00
2024-05-21 13:00:50 +08:00
2023-11-27 12:05:14 +08:00
2023-11-02 20:01:51 +08:00
2023-11-13 12:25:08 +08:00
2024-06-26 17:45:21 +08:00
2024-07-04 13:56:05 +08:00
2023-11-03 17:31:20 +08:00
2024-08-30 10:43:42 +08:00
2024-08-27 17:22:19 +08:00
2024-02-21 19:18:45 +08:00
2024-07-04 13:56:05 +08:00
2023-12-19 12:17:39 +08:00
2023-10-13 15:25:38 +08:00
2023-11-22 19:47:09 +08:00