v.19.17New Feature

Implemented Javahashutf16le() Function #7651 (achimbab)

Implemented javaHashUTF16LE() function #7651 (achimbab)
Introduced the javaHashUTF16LE() function in ClickHouse to compute hash values compatible with Java's UTF-16LE string hashing.

Why it matters

This feature enables users to generate hash values that are consistent with Java's hash code implementation for UTF-16LE encoded strings, facilitating integration and data consistency between ClickHouse and Java applications.

How to use it

Use the javaHashUTF16LE() function in your SQL queries by passing a string argument encoded in UTF-16LE, for example:

SELECT javaHashUTF16LE('example string')

This will return the hash code matching Java's hashing logic for UTF-16LE strings.