qsy840035156 commented on code in PR #1814: URL: https://github.com/apache/doris-website/pull/1814#discussion_r1918149487
########## docs/sql-manual/sql-functions/scalar-functions/encrypt-digest-functions/murmur-hash3-64.md: ########## @@ -22,42 +22,42 @@ specific language governing permissions and limitations under the License. --> -## murmur_hash3_64 +## Description -### description -#### Syntax +Calculate 64-bit murmur3 hash value -`BIGINT MURMUR_HASH3_64(VARCHAR input, ...)` +-Note: After testing, the performance of `xxhash_64` is about twice that of `murmur_hash3_64`, so when calculating hash values, it is recommended to use `xxhash_64` instead of `murmur_hash3_64`. -Return the 64 bits murmur3 hash of input string. -Note: When calculating hash values, it is more recommended to use `xxhash_64` instead of `murmur_hash3_64`. +## Syntax -### example - -``` -mysql> select murmur_hash3_64(null); -+-----------------------+ -| murmur_hash3_64(NULL) | -+-----------------------+ -| NULL | -+-----------------------+ - -mysql> select murmur_hash3_64("hello"); -+--------------------------+ -| murmur_hash3_64('hello') | -+--------------------------+ -| -3215607508166160593 | -+--------------------------+ - -mysql> select murmur_hash3_64("hello", "world"); -+-----------------------------------+ -| murmur_hash3_64('hello', 'world') | -+-----------------------------------+ -| 3583109472027628045 | -+-----------------------------------+ +```sql +MURMUR_HASH3_64( VARCHAR <str> [ , <str> ... ] ) ``` -### keywords +## Parameters + +| parameter | description | +|---------|------------------------------------------------| +| `<str>` | The 64-bit murmur3 hash value to be calculated | + +## Return Value + +Returns the 64-bit murmur3 hash of the input string。 + +-When the parameter is NULL, it returns NULL Review Comment: 中英文都修改了 -- 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