BiteTheDDDDt opened a new pull request, #62512:
URL: https://github.com/apache/doris/pull/62512
```
after:
- InitProbeSideTime: 85.747ms
- ProbeIntermediateRows: 85.52771M (85527710)
before:
- InitProbeSideTime: 102.746ms
- ProbeIntermediateRows: 85.52771M (85527710)
```
This pull request introduces a new CRC32-based hashing implementation that
consistently returns a 32-bit hash value, and updates the join hash table
infrastructure to use this new implementation for primary, fixed, and string
key types. The changes are focused on improving hash consistency and efficiency
by leveraging type-specific CRC32 intrinsics.
The most important changes are:
### New CRC32 Hash Implementation
* Added a new header file `hash_crc32_return32.h` that implements
type-specialized CRC32 hash functions returning `uint32_t`, using the narrowest
possible intrinsic for each type and supporting a wide range of key types
including arithmetic, 128/256-bit, and compound types.
### Hash Table Infrastructure Updates
* Updated the hash type used in `JoinHashTable` and related hash table
context typedefs to use the new `HashCRC32Return32` instead of the previous
`HashCRC32`, ensuring all hash values are consistently 32 bits.
[[1]](diffhunk://#diff-50a41f44edcbb4571a6e14c6440f7a53fdd2e68f1c95dc51fa1fc906610db5f3L43-R43)
[[2]](diffhunk://#diff-253e23eff6f1a66e419e353770f4d0cb9fbdaa804f254f15ced17119840e7a77L74-R88)
### Build and Include Adjustments
* Included the new `hash_crc32_return32.h` header in `join_utils.h` to make
the new hash function available to the relevant code.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]