Skip to content
DuckDB community extension

duckherder

Run duckdb query on remote server

01 / SETUP

Install and load

Run these commands in a Haybarn SQL session. The extension is available from the community repository.

Haybarn 2.0.0 · SQL
INSTALL duckherder FROM community;
LOAD duckherder FROM community;

Using upstream DuckDB? Follow the maintainer’s installation instructions.

02 / QUERY

Usage example

SQL
SELECT duckherder_start_local_server(8815); ATTACH DATABASE 'localhost:8815' AS dh (TYPE duckherder);

Provided by dentiny. Not yet verified on Haybarn 2.0.0.

Sample data & setup

About this extension

This extension is built on storage extension, to execute query on remote server and transfer data back with arrow flight. For remote and distributed execution, there're two key components: driver and worker(s). As their names suggest, driver node is the control plane, and worker nodes do the real execution tasks. Users are allowed to implement their own driver and worker(s), and register to the duckdb client-side, as long they speaks duckherder dialect (i.e., grpc stubs and arrow flight). From users' perspective, all DML and DDL SQL statements should be used exactly the same as local duckdb.

Project overview from the community descriptor.

Documentation and resources

Project and build details
Repository
dentiny/duckdb-distributed-execution
License
MIT
Maintainers
dentiny
Written in
C++
Build source
3598d5422575
Build definition
Community descriptor