MotherDuck
Overview
DuckDB is an in-process SQL OLAP database management system and this destination is meant to use locally if you have multiple smaller sources such as GitHub repos, some social media and local CSVs or files you want to run analytics workloads on. This destination writes data to the MotherDuck service, or to a file on the local filesystem on the host running Airbyte.
For file-based DBs, data is written to /tmp/airbyte_local
by default. To change this location, modify the LOCAL_ROOT
environment variable for Airbyte.
Destinations V2
This destination implements Destinations V2, which provides improved final table structures. It's a new version of the existing DuckDB destination and works both with DuckDB and MotherDuck.
Learn more about what's new in Destinations V2 here.
Use with MotherDuck
This DuckDB destination is compatible with MotherDuck.
Specifying a MotherDuck Database
To specify a MotherDuck-hosted database as your destination, simply provide your database uri with the normal md:
database prefix in the destination_path
configuration option.
We do not recommend providing your API token in the md:
connection string, as this may cause your token to be printed to execution logs. Please use the MotherDuck API Key
setting instead.
Authenticating to MotherDuck
For authentication, you can can provide your MotherDuck Service Credential as the motherduck_api_key
configuration option.
Sync Overview
Output schema
Each table will contain at least the following columns:
_airbyte_raw_id
: a uuid assigned by Airbyte to each event that is processed._airbyte_extracted_at
: a timestamp representing when the event was pulled from the data source._airbyte_meta
: a json blob storing metadata about the record.
In addition, columns specified in the JSON schema will also be created.
Features
Feature | Supported | |
---|---|---|
Full Refresh Sync | Yes | |
Incremental - Append Sync | Yes | |
Incremental - Append + Deduped | Yes | |
Namespaces | No |
Performance consideration
This integration will be constrained by the speed at which your filesystem accepts writes.
Working with local DuckDB files
This connector is primarily designed to work with MotherDuck and local DuckDB files for Destinations V2. If you would like to work only with local DuckDB files, you may want to consider using the DuckDB destination.
Changelog
Expand to review
Version | Date | Pull Request | Subject |
---|---|---|---|
0.1.3 | 2024-10-23 | 47315 | Fix bug causing MotherDuck API key to not be correctly passed to the engine. |
0.1.2 | 2024-10-23 | 47315 | Use saas_only mode during connection check to reduce ram usage. |
0.1.1 | 2024-10-23 | 47312 | Fix: generate new unique destination ID |
0.1.0 | 2024-10-23 | 46904 | New MotherDuck destination |