Skip to contentManaged Kafka is live: Apache Kafka on AWS for half the cost of MSK

Destinations

Connect MotherDuck as a destination

Create a MotherDuck Read/Write access token, connect MotherDuck to an Artie pipeline as a destination, and share the replicated database with your organization.

Required settings

Artie asks for these values. Each field name matches its label in the Artie dashboard.

FieldWhat to enter
TokenA MotherDuck access token of type Read/Write Token. See Create an access token.
Database nameThe MotherDuck database Artie writes to.
Schema nameThe schema Artie writes to. With Multiple schemas, Artie uses the source schema names instead.

Create a dedicated MotherDuck account for pipeline writes: a service account, or a regular account such as [email protected]. Only the owner of that account can access the data it writes. To give your team access, share the data with your team.

Create an access token

Follow the steps for the type of account Artie writes with.

MotherDuck covers this in its access token documentation.

  1. In MotherDuck, go to Settings, then Access Tokens.
  2. Select Create token.
  3. Enter a Name for the token.
  4. Set Token type to Read/Write Token. Artie needs this type to write data.
  5. Select Create token.
MotherDuck Settings page showing the Create Token dialog with Read/Write token type selected

Add MotherDuck to a pipeline

When you create a pipeline, the Destination section of the setup has these steps.

  1. Choose the destination

    In Choose destination, select MotherDuck.

  2. Review the preparation guide

    Prepare destination shows the access token and sharing instructions from this page. Select Continue.

    Artie skips this step when the pipeline reuses an existing MotherDuck connector.

  3. Enter the token

    In Connect and verify, paste the access token into Token.

    A pipeline that reuses an existing MotherDuck connector shows an Existing connector notice instead. That connector’s connection details can’t be changed in this step.

  4. Choose the database

    In Database name, select the database Artie writes to.

    To create a database, type its name and select Create “NAME”, where NAME is the name you typed.

  5. Choose the schema

    In Schema name, select the schema Artie writes to. To create a schema, type its name and select Create “NAME”.

    If your source has schemas, a Schema control appears with two options, One schema and Multiple schemas.

    One schema writes all tables to the schema in Schema name. For source tables outside the default schema, Artie prepends the source schema name to the destination table name.

    Multiple schemas writes each table to a schema with the same name as its source schema. Schema name prefix (optional) adds a prefix to each schema name.

  6. Verify the destination

    Select Verify destination. Artie shows “Destination verified”.

    If the pipeline has no tables yet, the button reads Test connection. A passing test shows “Connection works. Choose tables to finish verifying the destination.”

The setup has no Network access step for MotherDuck, because MotherDuck destinations don’t support SSH tunnels.

Advanced options

Advanced options in Connect and verify holds optional destination settings. With a PostgreSQL, Oracle, CockroachDB, Amazon Keyspaces or Snowflake source, it includes DOUBLE for variable numerics under Data types. Turn it on to store numeric columns without a fixed precision as DOUBLE instead of TEXT.

Edit an existing pipeline

Select Edit pipeline, then open the Destination: MotherDuck tab.

The schema fields are locked while the pipeline is running. Pause the pipeline to change them, then move its tables to the new schema in MotherDuck.

Verify the database in MotherDuck

Once your pipeline is running, log in to MotherDuck with the account that created the access token. The database you chose in Database name appears in the databases list.

If the token belongs to a service account, impersonate the service account to see the database. Impersonation requires the Admin or Builder role.

Share data with your team

Only the account that owns the token can access the pipeline database. To give your team read-only access, create an organization share and have each team member attach it. MotherDuck describes shares in its sharing documentation.

  1. Create an organization share

    If the token belongs to a service account, impersonate the service account before you create the share.

    1. Select the ⋮ menu next to your pipeline database, then select Share.
    2. Set Who has access to Anyone in my organization.
    3. Turn on Discoverable and Auto-updating.
    4. Select Create share.
    MotherDuck database sharing dialog configured for organization-wide access with auto-updating enabled
  2. Attach the share

    Each team member finds the shared database under Shared with me in their MotherDuck workspace and selects Attach.

    MotherDuck workspace showing the Shared with me section with an Attach button

Data types

Artie maps its own types to these MotherDuck types. Artie’s typing library covers how source types become Artie types.

Artie typeMotherDuck type
Float, doubleDOUBLE
Small integerSMALLINT
IntegerINTEGER
Big integer, or an integer of unknown sizeBIGINT
Decimal with a precision up to 38DECIMAL(precision, scale)
Decimal with a precision over 38TEXT
Decimal without a fixed precisionTEXT, or DOUBLE when DOUBLE for variable numerics is on
BooleanBOOLEAN
StringTEXT
UUIDUUID
DateDATE
TimeTIME
Timestamp without a time zoneTIMESTAMP
Timestamp with a time zoneTIMESTAMP WITH TIME ZONE
IntervalINTERVAL
Array of UUIDsUUID[]
Any other arrayTEXT[]
Struct or JSONJSON

Was this page helpful?