Skip to main content

Get Started

This document describes how to build and run DatabendQuery as a distributed query engine.

1. Deploy

$ curl -fsS https://repo.databend.rs/databend/install-bendctl.sh | bash
$ export PATH="${HOME}/.databend/bin:${PATH}"
$ bendctl cluster create

2. Client

note

numbers(N) โ€“ A table for test with the single number column (UInt64) that contains integers from 0 to N-1.

mysql -h127.0.0.1 -uroot -P3307
mysql> SELECT avg(number) FROM numbers(1000000000);
+-------------+
| avg(number) |
+-------------+
| 499999999.5 |
+-------------+
1 row in set (0.05 sec)