mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-28 02:21:59 +00:00
Move debug line.
This commit is contained in:
parent
3c5343b6c8
commit
0d4f66b825
@ -7,11 +7,11 @@ CUR_DIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
|
||||
allowed_name_length=$($CLICKHOUSE_CLIENT -mn --query="SELECT getMaxTableNameLengthForDatabase('$CLICKHOUSE_DATABASE')")
|
||||
let excess_length=allowed_name_length+1
|
||||
|
||||
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)
|
||||
allowed_table_name=$(openssl rand -base64 $allowed_name_length | tr -dc A-Za-z | head -c $allowed_name_length)
|
||||
|
||||
$CLICKHOUSE_CLIENT -mn --query="CREATE TABLE $long_table_name (id UInt32, long_table_name String) Engine=MergeTree() order by id;" 2>&1 | grep -o -m 1 "ARGUMENT_OUT_OF_BOUND"
|
||||
$CLICKHOUSE_CLIENT -mn --query="CREATE TABLE $allowed_table_name (id UInt32, allowed_table_name String) Engine=MergeTree() order by id;"
|
||||
$CLICKHOUSE_CLIENT -mn --query="DROP TABLE $allowed_table_name;"
|
||||
|
||||
getconf NAME_MAX /fasttest-workspace/db-fasttest/store
|
||||
|
Loading…
Reference in New Issue
Block a user