Fix test a little bit

This commit is contained in:
Ivan Lezhankin 2021-04-02 13:57:56 +03:00
parent 4006be502b
commit 059175217f
2 changed files with 10 additions and 7 deletions

View File

@ -4,12 +4,14 @@ CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
# shellcheck source=../shell_config.sh
. "$CURDIR"/../shell_config.sh
echo "DROP TABLE IF EXISTS table" | ${CLICKHOUSE_CURL} -sSg "${CLICKHOUSE_URL}&session_id=01783" -d @-
echo "CREATE TABLE table (a String) ENGINE Memory()" | ${CLICKHOUSE_CURL} -sSg "${CLICKHOUSE_URL}&session_id=01783" -d @-
URL="${CLICKHOUSE_URL}&session_id=id_${CLICKHOUSE_DATABASE}"
echo "DROP TABLE IF EXISTS table" | ${CLICKHOUSE_CURL} -sSg "${URL}" -d @-
echo "CREATE TABLE table (a String) ENGINE Memory()" | ${CLICKHOUSE_CURL} -sSg "${URL}" -d @-
# NOTE: suppose that curl sends everything in a single chunk - there are no options to force the chunk-size.
echo "SET max_query_size=44" | ${CLICKHOUSE_CURL} -sSg "${CLICKHOUSE_URL}&session_id=01783" -d @-
echo -ne "INSERT INTO TABLE table FORMAT TabSeparated 1234567890 1234567890 1234567890 1234567890\n" | ${CLICKHOUSE_CURL} -H "Transfer-Encoding: chunked" -sS "${CLICKHOUSE_URL}&session_id=01783" --data-binary @-
echo "SET max_query_size=44" | ${CLICKHOUSE_CURL} -sSg "${URL}" -d @-
echo -ne "INSERT INTO TABLE table FORMAT TabSeparated 1234567890 1234567890 1234567890 1234567890\n" | ${CLICKHOUSE_CURL} -H "Transfer-Encoding: chunked" -sS "${URL}" --data-binary @-
echo "SELECT * from table" | ${CLICKHOUSE_CURL} -sSg "${CLICKHOUSE_URL}&session_id=01783" -d @-
echo "DROP TABLE table" | ${CLICKHOUSE_CURL} -sSg "${CLICKHOUSE_URL}&session_id=01783" -d @-
echo "SELECT * from table" | ${CLICKHOUSE_CURL} -sSg "${URL}" -d @-
echo "DROP TABLE table" | ${CLICKHOUSE_CURL} -sSg "${URL}" -d @-

View File

@ -164,7 +164,8 @@
"00062_replicated_merge_tree_alter_zookeeper",
/// Does not support renaming of multiple tables in single query
"00634_rename_view",
"00140_rename"
"00140_rename",
"01783_http_chunk_size"
],
"polymorphic-parts": [
"01508_partition_pruning_long", /// bug, shoud be fixed