-
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
[improve](function) opt aes_encrypt/decrypt function to handle const column #37194
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: 39725 ms
|
TPC-DS: Total hot run time: 170200 ms
|
ClickBench: Total hot run time: 30.5 s
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
PR approved by at least one committer and no changes requested. |
PR approved by anyone and no changes requested. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
…column (#37194) ## Proposed changes ``` select to_base64(aes_encrypt(column,'F3229A0B371ED2D9441B830D21A390C3', '0123456789')); In most case of user, the second and third argument are const literal. so handle the special case. mysql [test]>select count(aes_encrypt(a, 'seed1seed2seed3','0123456789')) from json_table_2; +-----------------------------------------------------------+ | count(aes_encrypt(a, '***', '0123456789', 'AES_256_CBC')) | +-----------------------------------------------------------+ | 10000001 | +-----------------------------------------------------------+ 1 row in set (5.20 sec) mysql [test]>select count(aes_encrypt(a, 'seed1seed2seed3','0123456789')) from json_table_2; +-----------------------------------------------------------+ | count(aes_encrypt(a, '***', '0123456789', 'AES_256_CBC')) | +-----------------------------------------------------------+ | 10000001 | +-----------------------------------------------------------+ 1 row in set (7.05 sec) ```
…column (apache#37194) ## Proposed changes ``` select to_base64(aes_encrypt(column,'F3229A0B371ED2D9441B830D21A390C3', '0123456789')); In most case of user, the second and third argument are const literal. so handle the special case. mysql [test]>select count(aes_encrypt(a, 'seed1seed2seed3','0123456789')) from json_table_2; +-----------------------------------------------------------+ | count(aes_encrypt(a, '***', '0123456789', 'AES_256_CBC')) | +-----------------------------------------------------------+ | 10000001 | +-----------------------------------------------------------+ 1 row in set (5.20 sec) mysql [test]>select count(aes_encrypt(a, 'seed1seed2seed3','0123456789')) from json_table_2; +-----------------------------------------------------------+ | count(aes_encrypt(a, '***', '0123456789', 'AES_256_CBC')) | +-----------------------------------------------------------+ | 10000001 | +-----------------------------------------------------------+ 1 row in set (7.05 sec) ```
… crash (apache#40726) Not supported mode arg in sm4_encrypt and sm4_decrypt make BE crash. Intro by apache#37194
Proposed changes