ClickHouse/tests/queries/0_stateless/00598_create_as_select_http.sh
Ivan 97f2a2213e
Move all folders inside /dbms one level up (#9974)
* Move some code outside dbms/src folder
* Fix paths
2020-04-02 02:51:21 +03:00

12 lines
384 B
Bash
Executable File

#!/usr/bin/env bash
CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
. $CURDIR/../shell_config.sh
set -e -o pipefail
$CLICKHOUSE_CLIENT --query="DROP TABLE IF EXISTS test_00598"
$CLICKHOUSE_CURL -sS -d 'CREATE TABLE test_00598 ENGINE = Memory AS SELECT 1' $CLICKHOUSE_URL
$CLICKHOUSE_CLIENT --query="SELECT * FROM test_00598"
$CLICKHOUSE_CLIENT --query="DROP TABLE test_00598"