ClickHouse/tests/queries/0_stateless/00598_create_as_select_http.sh

13 lines
427 B
Bash
Raw Normal View History

2018-03-07 18:59:22 +00:00
#!/usr/bin/env bash
CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
2020-12-28 11:46:53 +00:00
# shellcheck source=../shell_config.sh
2020-08-01 00:51:12 +00:00
. "$CURDIR"/../shell_config.sh
2018-03-07 18:59:22 +00:00
set -e -o pipefail
2019-06-03 17:36:27 +00:00
$CLICKHOUSE_CLIENT --query="DROP TABLE IF EXISTS test_00598"
$CLICKHOUSE_CURL -sS -d 'CREATE TABLE test_00598 ENGINE = Memory AS SELECT 1' "$CLICKHOUSE_URL"
2019-06-03 17:36:27 +00:00
$CLICKHOUSE_CLIENT --query="SELECT * FROM test_00598"
$CLICKHOUSE_CLIENT --query="DROP TABLE test_00598"