linrrzqqq opened a new pull request, #56798:
URL: https://github.com/apache/doris/pull/56798
### What problem does this PR solve?
Issue Number: close #xxx
Related PR: #xxx
Problem Summary:
### Release note
`EXPORT_SET` is used to convert each bit of an integer into a specified
string and concatenate them into a result string. For each bit in `bits` that
is 1, the corresponding position in the result will display the `on` string;
for each bit that is 0, the `off` string will be displayed. The bits are
checked in order from right to left (i.e., from the least significant bit to
the most significant bit), but concatenated into the result string from left to
right. The bits are separated by the `separator` (default is a comma `,`).
```text
mysql> SELECT EXPORT_SET(5, '1', '0');
+---------------------------------------------------------------------------------------------------------------------------------+
| EXPORT_SET(5, '1', '0')
|
+---------------------------------------------------------------------------------------------------------------------------------+
|
1,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
|
+---------------------------------------------------------------------------------------------------------------------------------+
mysql> SELECT EXPORT_SET(5, '1', '0', '|', 5);
+---------------------------------+
| EXPORT_SET(5, '1', '0', '|', 5) |
+---------------------------------+
| 1|0|1|0|0 |
+---------------------------------+
mysql> SELECT EXPORT_SET(5, 'apache', 'doris', '123', 5);
+--------------------------------------------+
| EXPORT_SET(5, 'apache', 'doris', '123', 5) |
+--------------------------------------------+
| apache123doris123apache123doris123doris |
+--------------------------------------------+
```
None
### Check List (For Author)
- Test <!-- At least one of them must be included. -->
- [ ] Regression test
- [ ] Unit Test
- [ ] Manual test (add detailed scripts or steps below)
- [ ] No need to test or manual test. Explain why:
- [ ] This is a refactor/code format and no logic has been changed.
- [ ] Previous test can cover this change.
- [ ] No code files have been changed.
- [ ] Other reason <!-- Add your reason? -->
- Behavior changed:
- [ ] No.
- [ ] Yes. <!-- Explain the behavior change -->
- Does this need documentation?
- [ ] No.
- [x] Yes. https://github.com/apache/doris-website/pull/2952
### Check List (For Reviewer who merge this PR)
- [ ] Confirm the release note
- [ ] Confirm test cases
- [ ] Confirm document
- [ ] Add branch pick label <!-- Add branch pick label that this PR should
merge into -->
--
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]