-
Notifications
You must be signed in to change notification settings - Fork 322
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: built-in function: Support hex() function #819 #2159
Conversation
Codecov Report
@@ Coverage Diff @@
## main #2159 +/- ##
============================================
+ Coverage 75.75% 75.78% +0.02%
- Complexity 353 354 +1
============================================
Files 619 619
Lines 117301 117523 +222
Branches 1039 1039
============================================
+ Hits 88864 89066 +202
- Misses 28226 28246 +20
Partials 211 211
Continue to review full report at Codecov.
|
hybridse/src/udf/udf.h
Outdated
if (std::is_same<V, float>::value || std::is_same<V, double>::value) { | ||
double numbuf = std::round(v); | ||
if (numbuf < LLONG_MIN) ss << std::hex << std::uppercase << int64_t(LLONG_MIN); | ||
else if (numbuf > LLONG_MAX) ss << std::hex << std::uppercase << int64_t(LLONG_MAX); |
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.
does it really overflow ?
merge after #2175 , it fix seg fault error here |
@zhanghaohit calling reviewer |
Thanks @HGZ-20 for the contribution. It is now merged. |
What kind of change does this PR introduce? (Bug fix, feature, docs update, ...)
feature
What is the current behavior? (You can also link to an open issue here)
built-in function: Support
hex()
function #819What is the new behavior (if this is a feature change)?
built-in function: Support hex() function