mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-05 15:21:43 +00:00
9 lines
562 B
Bash
9 lines
562 B
Bash
|
#!/bin/bash
|
||
|
|
||
|
curl -sS 'http://localhost:8123/' -d 'DROP TABLE IF EXISTS test.bad_arrays'
|
||
|
curl -sS 'http://localhost:8123/' -d 'CREATE TABLE test.bad_arrays (a Array(String)) ENGINE = Memory'
|
||
|
curl -sS 'http://localhost:8123/' -d 'INSERT INTO test.bad_arrays VALUES ([123])' 2>&1 | grep -c 'Exception'
|
||
|
curl -sS 'http://localhost:8123/' -d "INSERT INTO test.bad_arrays VALUES (['123', concat('Hello', ' world!'), toString(123)])"
|
||
|
curl -sS 'http://localhost:8123/' -d 'SELECT * FROM test.bad_arrays'
|
||
|
curl -sS 'http://localhost:8123/' -d 'DROP TABLE test.bad_arrays'
|