#!/usr/bin/env bash CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd) # shellcheck source=../shell_config.sh . "$CURDIR"/../shell_config.sh DB_NAME="${CLICKHOUSE_DATABASE}" function get_db_comment_info() { $CLICKHOUSE_CLIENT --query="SHOW CREATE DATABASE ${DB_NAME};" $CLICKHOUSE_CLIENT --query="SELECT 'comment=', comment FROM system.databases WHERE name='${DB_NAME}'" echo # just a newline } function test_db_comments() { local ENGINE_NAME="$1" echo "engine : ${ENGINE_NAME}" $CLICKHOUSE_CLIENT --allow_deprecated_database_ordinary=1 -nm <