ClickHouse/tests/queries/0_stateless/02834_client_yaml_configs.sh

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

23 lines
721 B
Bash
Raw Normal View History

2023-08-01 06:03:09 +00:00
#!/usr/bin/env bash
2023-08-01 07:52:06 +00:00
# Tags: no-fasttest
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-01 08:16:00 +00:00
pushd "${CLICKHOUSE_TMP}" || exit > /dev/null
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
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
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-01 08:16:00 +00:00
popd || exit > /dev/null