You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 16, 2021. It is now read-only.
I just tried it out of curiosity. I assume that this is just a development prototype, so no real expectations.
Sorry to bother.
git clone https://github.com/vectorengine/vectorsql
cd vectorsql
make build
./bin/vectorsql-server -c conf/vectorsql-default.toml
clickhouse-client --compression 0
# Cannot load data for command line suggestions: Code: 0, e.displayText() = DB::Exception: Received from localhost:9000. . Every derived table must have its own alias at position 849 near 'where'. (version 20.10.1.1)
VectorSQL :) SELECT 1
SELECT 1
Received exception from server (version 19.17.1):
Code: 0. DB::Exception: Received from localhost:9000. . Couldn't find table:dual storage.
VectorSQL :) SHOW DATABASES
SHOW DATABASES
┌─name───┬─engine─┬─data_path────────────┬─metadata_path────────────┐
│ system │ SYSTEM │ data9000/data/system │ data9000/metadata/system │
└────────┴────────┴──────────────────────┴──────────────────────────┘
1 rows in set. Elapsed: 0.004 sec.
VectorSQL :) SHOW TABLES FROM system
SHOW TABLES FROM system
┌─name──────┐
│ databases │
│ numbers │
│ tables │
└───────────┘
3 rows in set. Elapsed: 0.001 sec.
VectorSQL :) SELECT count() FROM system.numbers
SELECT count()
FROM system.numbers
↙ Progress: 3.00 rows, 155.00 B (4.10 thousand rows/s., 212.08 KB/s.) 99%
Received exception from server (version 19.17.1):
Code: 0. DB::Exception: Received from localhost:9000. . Unsupported Expression:COUNT.
0 rows in set. Elapsed: 0.014 sec.
VectorSQL :) SELECT count(*) FROM system.numbers
SELECT count(*)
FROM system.numbers
Exception on client:
Code: 210. DB::NetException: Connection reset by peer, while reading from socket (127.0.0.1:9000): while receiving packet from localhost:9000
Connecting to localhost:9000 as user default.
Connected to VectorSQL server version 19.17.1 revision 54428.
VectorSQL :) SELECT count(*) FROM system.numbers
SELECT count(*)
FROM system.numbers
Exception on client:
Code: 210. DB::NetException: Connection reset by peer, while reading from socket (127.0.0.1:9000): while receiving packet from localhost:9000
$ curl http://localhost:8123/ -d 'SELECT count() FROM system.numbers'
Unsupported Expression:COUNT
$ curl http://localhost:8123/ -d 'SELECT count(*) FROM system.numbers'
$
$
$ curl http://localhost:8123/ -d 'SELECT count(*) FROM system.numbers'
$ curl http://localhost:8123/ -d 'SELECT count(*) FROM system.numbers'
Returns immediately, server prints panic.
VectorSQL :) CREATE TEMPORARY TABLE t (x UInt64);
CREATE TEMPORARY TABLE t
(
`x` UInt64
)
Received exception from server (version 19.17.1):
Code: 0. DB::Exception: Received from localhost:9000. . syntax error at position 23 near 'table'.
VectorSQL :) CREATE DATABASE test
CREATE DATABASE test
Ok.
0 rows in set. Elapsed: 0.001 sec.
VectorSQL :) USE test
USE test
Exception on client:
Code: 210. DB::NetException: Connection refused (localhost:9000)
Connecting to localhost:9000 as user default.
Code: 210. DB::NetException: Connection refused (localhost:9000)
Server crashed.
benchmark$ ./run.sh
01_create_table.sh
Received exception from server (version 19.17.1):
Code: 0. DB::Exception: Received from localhost:9000. . database:benchmark doesn't exists.
02_generate_data.sh
rm: cannot remove 'data.tsv': No such file or directory
03_load_data.sh
clickhouse-client: ../src/DataStreams/ParallelParsingBlockInputStream.cpp:190: void DB::ParallelParsingBlockInputStream::parserThreadFunction(DB::ThreadGroupStatusPtr, size_t): Assertion `unit.is_last || !unit.block_ext.block.empty()' failed.
./03_load_data.sh: line 3: 15092 Broken pipe cat data.tsv
15093 Aborted (core dumped) | clickhouse-client --compression=0 --database=benchmark --query="insert into testdata FORMAT TabSeparated"
04_run_bench.sh
| SELECT COUNT(id) FROM testdata | 0.001s |
| SELECT COUNT(id) FROM testdata WHERE id!=0 | 0.001s |
| SELECT SUM(data1) FROM testdata | 0.001s |
| SELECT SUM(data1) AS sum, COUNT(data1) AS count, sum/count AS avg FROM testdata | 0.001s |
| SELECT MAX(id), MIN(id) FROM testdata | 0.001s |
| SELECT COUNT(data1) AS count, data1 FROM testdata GROUP BY data1 ORDER BY count DESC LIMIT 10 | 0.001s |
| SELECT email FROM testdata WHERE email like '%20@example.com%' LIMIT 1 | 0.001s |
| SELECT COUNT(email) FROM testdata WHERE email like '%20@example.com%' | 0.001s |
| SELECT data1 AS x, x - 1, x - 2, x - 3, count(data1) AS c FROM testdata GROUP BY x, x - 1, x - 2, x - 3 ORDER BY c DESC LIMIT 10 | 0.001s |
Benchmark works Ok.
But server does not return any data:
milovidov@milovidov-desktop:~/work/vectorsql/benchmark$ clickhouse-client --compression 0
ClickHouse client version 20.10.1.1.
Connecting to localhost:9000 as user default.
Connected to VectorSQL server version 19.17.1 revision 54428.
ClickHouse server version is older than ClickHouse client. It may indicate that the server is out of date and can be upgraded.
Cannot load data for command line suggestions: Code: 0, e.displayText() = DB::Exception: Received from localhost:9000. . Every derived table must have its own alias at position 849 near 'where'. (version 20.10.1.1)
VectorSQL :) USE test
USE test
Ok.
0 rows in set. Elapsed: 0.001 sec.
VectorSQL :) SHOW TABLES
SHOW TABLES
Ok.
0 rows in set. Elapsed: 0.002 sec.
VectorSQL :) USE benchmark
USE benchmark
Ok.
0 rows in set. Elapsed: 0.001 sec.
VectorSQL :) SHOW TABLES
SHOW TABLES
┌─name─────┐
│ testdata │
└──────────┘
1 rows in set. Elapsed: 0.003 sec.
VectorSQL :) SELECT count() FROM testdata
SELECT count()
FROM testdata
Ok.
0 rows in set. Elapsed: 0.001 sec.
VectorSQL :) SELECT count(*) FROM testdata
SELECT count(*)
FROM testdata
Exception on client:
Code: 210. DB::NetException: Connection reset by peer, while reading from socket (127.0.0.1:9000): while receiving packet from localhost:9000
Connecting to database benchmark at localhost:9000 as user default.
Connected to VectorSQL server version 19.17.1 revision 54428.
ClickHouse server version is older than ClickHouse client. It may indicate that the server is out of date and can be upgraded.
VectorSQL :) SELECT count(ID) FROM testdata
SELECT count(ID)
FROM testdata
Ok.
0 rows in set. Elapsed: 0.002 sec.
VectorSQL :) Bye.
milovidov@milovidov-desktop:~/work/vectorsql/benchmark$ clickhouse-client --compression 0 --query "SELECT count(ID) FROM testdata"
Received exception from server (version 19.17.1):
Code: 0. DB::Exception: Received from localhost:9000. . Couldn't find table:testdata storage.
milovidov@milovidov-desktop:~/work/vectorsql/benchmark$ clickhouse-client --compression 0 --database benchmark --query "SELECT count(ID) FROM testdata"
milovidov@milovidov-desktop:~/work/vectorsql/benchmark$
milovidov@milovidov-desktop:~/work/vectorsql/benchmark$ clickhouse-client --compression 0 --database benchmark --query "SELECT count(ID) FROM testdata"
milovidov@milovidov-desktop:~/work/vectorsql/benchmark$
The text was updated successfully, but these errors were encountered:
Thanks for your ack.
This is a prototype for learning ClickHouse(such plans/processors/pipeline) only.
And it is basically at a standstill because the memory footprint of the golang is out of control.
I just tried it out of curiosity. I assume that this is just a development prototype, so no real expectations.
Sorry to bother.
Let's try with clickhouse-cli:
Let's try HTTP interface:
Returns immediately, server prints panic.
Server crashed.
Benchmark works Ok.
But server does not return any data:
The text was updated successfully, but these errors were encountered: