2023-08-01 06:03:09 +00:00
|
|
|
#!/usr/bin/env bash
|
2023-08-02 21:50:19 +00:00
|
|
|
# Tags: no-fasttest, no-random-settings
|
2023-08-01 06:03:09 +00:00
|
|
|
|
|
|
|
CUR_DIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
|
|
|
|
# shellcheck source=../shell_config.sh
|
|
|
|
. "$CUR_DIR"/../shell_config.sh
|
|
|
|
|
2023-08-02 21:50:19 +00:00
|
|
|
pushd "${CLICKHOUSE_TMP}" > /dev/null || exit
|
2023-08-01 06:03:09 +00:00
|
|
|
|
|
|
|
echo "max_block_size: 31337" > clickhouse-client.yaml
|
|
|
|
${CLICKHOUSE_CLIENT} --query "SELECT getSetting('max_block_size')"
|
|
|
|
rm clickhouse-client.yaml
|
|
|
|
|
2023-08-01 14:40:55 +00:00
|
|
|
echo "max_block_size: 31338" > clickhouse-client.yml
|
2023-08-01 06:03:09 +00:00
|
|
|
${CLICKHOUSE_CLIENT} --query "SELECT getSetting('max_block_size')"
|
|
|
|
rm clickhouse-client.yml
|
|
|
|
|
2023-08-01 14:40:55 +00:00
|
|
|
echo "<clickhouse><max_block_size>31339</max_block_size></clickhouse>" > clickhouse-client.xml
|
2023-08-01 06:03:09 +00:00
|
|
|
${CLICKHOUSE_CLIENT} --query "SELECT getSetting('max_block_size')"
|
|
|
|
rm clickhouse-client.xml
|
|
|
|
|
2023-08-02 21:50:19 +00:00
|
|
|
popd > /dev/null || exit
|