-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
[pkg/ottl] Add Murmur3Hash converter #37027
base: main
Are you sure you want to change the base?
Conversation
- Murmur3Hash: Murmur3 32-bit hash represented as a signed integer - Murmur3Hash128: Murmur3 128-bit hash represented as two signed integers - Murmur3Hex: hexadecimal string in little-endian of the 32-bit Murmur3 hash - Murmur3Hex128: hexadecimal string in little-endian of the 128-bit Murmur3 hash
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #37027 +/- ##
=======================================
Coverage 79.63% 79.64%
=======================================
Files 2223 2224 +1
Lines 210283 210341 +58
=======================================
+ Hits 167456 167517 +61
- Misses 37211 37214 +3
+ Partials 5616 5610 -6 ☔ View full report in Codecov by Sentry. |
…tor-contrib into ottl_murmur3_func # Conflicts: # processor/logdedupprocessor/go.mod
Got a green light from the issue. I have refactored the murmur3 function |
Description
Add four murmur3 hash functions to convert the
target
to signed integer or hexadecimal string formatMurmur3Hash
returns a signed integer of the Murmur3 32-bit hashMurmur3Hash128
returns two signed integers of Murmur3 128-bit hashMurmur3Hex
returns a hexadecimal string in little-endian of the 32-bit Murmur3 hashMurmur3Hex128
returns a hexadecimal string in little-endian of the 128-bit Murmur3 hashExample:
Murmur3Hash("20250106")
Link to tracking issue
issue: #34077
supersedes: #34155
Testing
Documentation
readme