mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-15 10:52:30 +00:00
20 lines
771 B
Bash
20 lines
771 B
Bash
|
#!/usr/bin/env bash
|
||
|
# Tags: no-parallel, long
|
||
|
|
||
|
CUR_DIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
|
||
|
# shellcheck source=../shell_config.sh
|
||
|
. "$CUR_DIR"/../shell_config.sh
|
||
|
|
||
|
# Regression test for crash in case of part exceeds INT_MAX
|
||
|
#
|
||
|
# NOTE: .sh test is used over .sql because it needs $CLICKHOUSE_DATABASE to
|
||
|
# avoid truncation, since seems that the version of MinIO that is used on CI
|
||
|
# too slow with this.
|
||
|
$CLICKHOUSE_CLIENT -nm -q "
|
||
|
INSERT INTO FUNCTION s3('http://localhost:11111/test/$CLICKHOUSE_DATABASE/test_INT_MAX.tsv', '', '', 'TSV')
|
||
|
SELECT repeat('a', 1024) FROM numbers((pow(2, 30) * 2) / 1024)
|
||
|
SETTINGS s3_max_single_part_upload_size = '10Gi';
|
||
|
|
||
|
SELECT count() FROM s3('http://localhost:11111/test/$CLICKHOUSE_DATABASE/test_INT_MAX.tsv');
|
||
|
"
|