This commit is contained in:
Yarik Briukhovetskyi 2024-11-21 18:18:49 +01:00 committed by GitHub
parent ee1cd0acf3
commit 625cb70128
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -4,8 +4,8 @@ CUR_DIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
# shellcheck source=../shell_config.sh # shellcheck source=../shell_config.sh
. "$CUR_DIR"/../shell_config.sh . "$CUR_DIR"/../shell_config.sh
allowed_name_length=$($CLICKHOUSE_CLIENT -mn --query="SELECT getMaxTableNameLengthForDatabase('$CLICKHOUSE_DATABASE')") # allowed_name_length=$($CLICKHOUSE_CLIENT -mn --query="SELECT getMaxTableNameLengthForDatabase('$CLICKHOUSE_DATABASE')")
let excess_length=allowed_name_length+1 # let excess_length=allowed_name_length+1
getconf NAME_MAX /fasttest-workspace/db-fasttest/store getconf NAME_MAX /fasttest-workspace/db-fasttest/store
# long_table_name=$(openssl rand -base64 $excess_length | tr -dc A-Za-z | head -c $excess_length) # long_table_name=$(openssl rand -base64 $excess_length | tr -dc A-Za-z | head -c $excess_length)