mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-23 08:02:02 +00:00
fix tests
This commit is contained in:
parent
40f439bde3
commit
20dd6aba6d
@ -1,4 +1,4 @@
|
||||
1
|
||||
1
|
||||
1
|
||||
1
|
||||
Not supported
|
||||
Not supported
|
||||
Not supported
|
||||
Not supported
|
||||
|
@ -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))"
|
||||
|
Loading…
Reference in New Issue
Block a user