-
Notifications
You must be signed in to change notification settings - Fork 3.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Fix](function) fix random_bytes return same data for multi rows #39891
Conversation
Thank you for your contribution to Apache Doris. Since 2024-03-18, the Document has been moved to doris-website. |
run buildall |
clang-tidy review says "All clean, LGTM! 👍" |
TPC-H: Total hot run time: 37874 ms
|
TPC-DS: Total hot run time: 192272 ms
|
ClickBench: Total hot run time: 30.65 s
|
run buildall |
clang-tidy review says "All clean, LGTM! 👍" |
TPC-H: Total hot run time: 37784 ms
|
TPC-DS: Total hot run time: 191586 ms
|
ClickBench: Total hot run time: 30.94 s
|
PR approved by anyone and no changes requested. |
PR approved by at least one committer and no changes requested. |
…che#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 | +------------------------+ ```
…che#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 | +------------------------+ ```
…che#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 | +------------------------+ ```
…ws (#39891) (#40137) pick #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.-->
…m_bytes foldable properties (apache#39944) ## Proposed changes fix the conflict between apache#39801 and apache#39891
) ## Proposed changes 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
before:
now: