fix tests

This commit is contained in:
JackyWoo 2022-10-02 11:17:57 +08:00
parent 40f439bde3
commit 20dd6aba6d
2 changed files with 19 additions and 15 deletions

View File

@ -1,4 +1,4 @@
1
1
1
1
Not supported
Not supported
Not supported
Not supported

View File

@ -5,15 +5,19 @@ 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
exception_pattern='DB::Exception:'
function check()
{
${CLICKHOUSE_CLIENT} -q "$1" |& {
if [[ `grep -F $exception_pattern | wc -l` -gt 0 ]]
then
echo 'Not supported'
fi
}
}
check "SELECT javaHash(toUInt8(1))"
check "SELECT javaHash(toUInt16(1))"
check "SELECT javaHash(toUInt32(1))"
check "SELECT javaHash(toUInt64(1))"