sjyango opened a new pull request, #31193: URL: https://github.com/apache/doris/pull/31193
## Proposed changes Issue Number: close #31138 <!--Describe your changes.--> Support `xxhash_32` and `xxhash_64` fucntion. ```SQL mysql> select xxhash_32('hello', 'world', '!'); +----------------------------------+ | xxhash_32('hello', 'world', '!') | +----------------------------------+ | 352087701 | +----------------------------------+ 1 row in set (0.06 sec) mysql> select xxhash_32('hello', 'world', NULL); +-----------------------------------+ | xxhash_32('hello', 'world', NULL) | +-----------------------------------+ | NULL | +-----------------------------------+ 1 row in set (0.01 sec) mysql> select xxhash_64('hello'); +----------------------+ | xxhash_64('hello') | +----------------------+ | -7685981735718036227 | +----------------------+ 1 row in set (0.07 sec) mysql> select xxhash_64('hello', 'world'); +-----------------------------+ | xxhash_64('hello', 'world') | +-----------------------------+ | 7001965798170371843 | +-----------------------------+ 1 row in set (0.06 sec) mysql> select xxhash_64('hello', NULL); +--------------------------+ | xxhash_64('hello', NULL) | +--------------------------+ | NULL | +--------------------------+ 1 row in set (0.01 sec) mysql> select xxhash_64('hello', 'world', '!'); +----------------------------------+ | xxhash_64('hello', 'world', '!') | +----------------------------------+ | 6796829678999971400 | +----------------------------------+ 1 row in set (0.06 sec) mysql> select xxhash_64('hello', 'world', NULL); +-----------------------------------+ | xxhash_64('hello', 'world', NULL) | +-----------------------------------+ | NULL | +-----------------------------------+ 1 row in set (0.01 sec) ``` ## Further comments If this is a relatively large or complex change, kick off the discussion at [d...@doris.apache.org](mailto:d...@doris.apache.org) by explaining why you chose the solution you did and what alternatives you considered, etc... -- 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: commits-unsubscr...@doris.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org