diff --git a/tests/queries/0_stateless/00800_function_java_hash_with_unsigined_types.reference b/tests/queries/0_stateless/00800_function_java_hash_with_unsigined_types.reference index 98fb6a68656..fd8cdc5d5bb 100644 --- a/tests/queries/0_stateless/00800_function_java_hash_with_unsigined_types.reference +++ b/tests/queries/0_stateless/00800_function_java_hash_with_unsigined_types.reference @@ -1,4 +1,4 @@ -1 -1 -1 -1 +Not supported +Not supported +Not supported +Not supported diff --git a/tests/queries/0_stateless/00800_function_java_hash_with_unsigined_types.sh b/tests/queries/0_stateless/00800_function_java_hash_with_unsigined_types.sh index 205667e8288..03e87a90a95 100755 --- a/tests/queries/0_stateless/00800_function_java_hash_with_unsigined_types.sh +++ b/tests/queries/0_stateless/00800_function_java_hash_with_unsigined_types.sh @@ -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))"