Skip to main content

Get Started

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

1. Build and run

$ git clone https://github.com/datafuselabs/databend.git
$ cd databend && make setup
$ make run

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)