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
741 B
Bash
Raw Normal View History

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
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-02 21:50:19 +00:00
popd > /dev/null || exit