2021-04-08 15:57:39 +00:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
# NOTE: this is a partial copy of the 01683_dist_INSERT_block_structure_mismatch,
|
|
|
|
# but this test also checks the log messages
|
|
|
|
|
|
|
|
CUR_DIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
|
|
|
|
# shellcheck source=../shell_config.sh
|
|
|
|
. "$CUR_DIR"/../shell_config.sh
|
|
|
|
|
2021-08-11 13:20:36 +00:00
|
|
|
if [[ -z $S3_ACCESS_KEY_ID ]]; then
|
|
|
|
echo "@@SKIP@@: Missing \$S3_ACCESS_KEY_ID"
|
|
|
|
exit 0
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [[ -z $S3_SECRET_ACCESS ]]; then
|
|
|
|
echo "@@SKIP@@: Missing \$S3_SECRET_ACCESS"
|
|
|
|
exit 0
|
|
|
|
fi
|
2021-04-08 15:57:39 +00:00
|
|
|
|
2021-04-08 16:47:51 +00:00
|
|
|
${CLICKHOUSE_CLIENT_BINARY} --send_logs_level="none" -q "SELECT * FROM s3('https://s3.mds.yandex.net/clickhouse-test-reports/*/*/functional_stateless_tests_(ubsan)/test_results.tsv', '$S3_ACCESS_KEY_ID', '$S3_SECRET_ACCESS', 'LineAsString', 'line String') limit 100 FORMAT Null;"
|
2021-04-12 21:52:16 +00:00
|
|
|
${CLICKHOUSE_CLIENT_BINARY} --send_logs_level="none" -q "SELECT * FROM s3Cluster('test_cluster_two_shards', 'https://s3.mds.yandex.net/clickhouse-test-reports/*/*/functional_stateless_tests_(ubsan)/test_results.tsv', '$S3_ACCESS_KEY_ID', '$S3_SECRET_ACCESS', 'LineAsString', 'line String') limit 100 FORMAT Null;"
|