fix tests

This commit is contained in:
JackyWoo 2022-09-30 15:10:19 +08:00
parent c70d687cfb
commit 46945862ad
4 changed files with 23 additions and 8 deletions

View File

@ -8,10 +8,6 @@
122
-539222985
-539222986
Code: 48. DB::Exception: Unsigned types are not supported: While processing javaHash(toUInt8(1)). (NOT_IMPLEMENTED)
Code: 48. DB::Exception: Unsigned types are not supported: While processing javaHash(toUInt16(1)). (NOT_IMPLEMENTED)
Code: 48. DB::Exception: Unsigned types are not supported: While processing javaHash(toUInt32(1)). (NOT_IMPLEMENTED)
Code: 48. DB::Exception: Unsigned types are not supported: While processing javaHash(toUInt64(1)). (NOT_IMPLEMENTED)
96354
-676697544
138768

View File

@ -10,10 +10,6 @@ select javaHash(toInt64(123));
select javaHash(toInt64(-123));
select javaHash(toInt64(12345678901));
select javaHash(toInt64(-12345678901));
select javaHash(toUInt8(1));
select javaHash(toUInt16(1));
select javaHash(toUInt32(1));
select javaHash(toUInt64(1));
select javaHash('abc');
select javaHash('874293087');
select javaHashUTF16LE(convertCharset('a1가', 'utf-8', 'utf-16le'));

View File

@ -0,0 +1,19 @@
#!/usr/bin/env bash
# Tags: no-fasttest
CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
# shellcheck source=../shell_config.sh
. "$CURDIR"/../shell_config.sh
${CLICKHOUSE_CLIENT} -q "SELECT javaHash(toUInt8(1))" |& {
grep -F 'DB::Exception:' | wc -l
}
${CLICKHOUSE_CLIENT} -q "SELECT javaHash(toUInt16(1))" |& {
grep -F 'DB::Exception:' | wc -l
}
${CLICKHOUSE_CLIENT} -q "SELECT javaHash(toUInt32(1))" |& {
grep -F 'DB::Exception:' | wc -l
}
${CLICKHOUSE_CLIENT} -q "SELECT javaHash(toUInt64(1))" |& {
grep -F 'DB::Exception:' | wc -l
}