-
Notifications
You must be signed in to change notification settings - Fork 705
feat: impl hex_to_int256 #9146
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
feat: impl hex_to_int256 #9146
Conversation
Codecov Report
@@ Coverage Diff @@
## main #9146 +/- ##
========================================
Coverage 70.86% 70.87%
========================================
Files 1199 1200 +1
Lines 199695 199830 +135
========================================
+ Hits 141513 141628 +115
- Misses 58182 58202 +20
Flags with carried forward coverage won't be shown. Click here to find out more.
... and 7 files with indirect coverage changes 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
lmatz
left a comment
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
I hereby agree to the terms of the RisingWave Labs, Inc. Contributor License Agreement.
What's changed and what's your intention?
This pull request adds support for a new function,
hex_to_int256, to various modules within the code. This new function allows for the conversion of hexadecimal values into 256-bit integers, like '0xff'. Additionally, the changes include various tests for theInt256type and thehex_to_int256function.It's important to note that the input string must start with "0x" or "-0x" and the function is not case-sensitive about this.
Checklist For Contributors
- [] I have added fuzzing tests or opened an issue to track them. (Optional, recommended for new SQL features Sqlsmith: Sql feature generation #7934)../risedev check(or alias,./risedev c)Checklist For Reviewers
Documentation
Click here for Documentation
Types of user-facing changes
Please keep the types that apply to your changes, and remove the others.
Release note