ClickHouse/tests/queries/0_stateless/00800_function_java_hash.sql

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

21 lines
814 B
MySQL
Raw Normal View History

2021-09-12 12:35:27 +00:00
-- Tags: no-fasttest
2022-09-14 01:58:31 +00:00
select javaHash(toInt8(123));
select javaHash(toInt8(-123));
select javaHash(toInt16(123));
select javaHash(toInt16(-123));
select javaHash(toInt32(123));
select javaHash(toInt32(-123));
select javaHash(toInt64(123));
select javaHash(toInt64(-123));
select javaHash(toInt64(12345678901));
select javaHash(toInt64(-12345678901));
2018-12-19 15:27:57 +00:00
select javaHash('abc');
select javaHash('874293087');
2019-11-06 10:46:37 +00:00
select javaHashUTF16LE(convertCharset('a1가', 'utf-8', 'utf-16le'));
select javaHashUTF16LE(convertCharset('가나다라마바사아자차카타파하', 'utf-8', 'utf-16le'));
select javaHashUTF16LE(convertCharset('FJKLDSJFIOLD_389159837589429', 'utf-8', 'utf-16le'));
select javaHashUTF16LE(convertCharset('𐐀𐐁𐐂𐐃𐐄', 'utf-8', 'utf-16le'));
2018-12-19 15:27:57 +00:00
select hiveHash('abc');
select hiveHash('874293087');