Export to Snowflake, BigQuery, PostgreSQL or SQL Server
Mammoth can write a View into a database table after every pipeline run: a database Mammoth hosts for you, or your own database or warehouse. Click Export in the View toolbar, then pick a card on the Mammoth Managed or External Destinations tab. Snowflake and Databricks are on every plan; the other databases need a paid plan, and Mammoth-managed databases need Pro (see Export destinations by plan).
To send a View into another Mammoth dataset, see Send a View to another dataset.
Get a Mammoth-managed BigQuery or PostgreSQL database
Mammoth provisions a fully managed Google BigQuery or PostgreSQL instance on demand, with no credentials to configure. Each is its own card on the Mammoth Managed tab.
- Click Export, open the Mammoth Managed tab and click the Google BigQuery or PostgreSQL card.
- Enter the destination table name (auto-filled from your Dataset and View names).
- Click Next: Generate Table and Copy Credentials. Mammoth creates the table, showing progress, then opens the Database Credentials dialog.
- Use those credentials to connect your BI tool (Tableau, Power BI, Looker) directly.
| Managed database | Credentials you get |
|---|---|
| PostgreSQL | Host, port, username, password, database and table, with a Copy all credentials button |
| BigQuery | The dataset and table, a Service Account Email to paste into tools such as Power BI, and a downloadable Service Account JSON key file. Keep the key secure |
The managed table is replaced in full on each run (drop and recreate). Managed databases have no Keep-at-end option. A workspace over its managed-database limit gets an error when it creates a managed table.
Supported external databases and warehouses
You provide the credentials; Mammoth delivers the data after each run. The form footer shows the task's Position (default: end of pipeline) and Update method; click the pencil icon to change them (see Task position and update method).
| Destination | Default port or credential type | Typical use |
|---|---|---|
| Google BigQuery | (JSON key file) | Cloud analytics, Looker integration |
| Snowflake | (password or key pair) | Cloud data warehouse |
| Databricks | (personal access token) | Lakehouse tables in Unity Catalog |
| Elasticsearch | 9243 | Search index, operational dashboards |
| SQL Server | 1433 | Microsoft ecosystem, Power BI |
| MySQL | 3306 | Web application backend |
| PostgreSQL | 5432 | General-purpose database, Tableau/Power BI |
| Amazon Redshift | 5439 | AWS data warehouse |
Allow Mammoth's IP address in your firewall
Allow Mammoth's IP address (34.255.92.234) in your database firewall before clicking Validate Connection. The IP is shown at the top of the database, warehouse and Elasticsearch forms. See Allow Mammoth through your firewall.
Validate Connection creates and then drops a test table. Apply only checks that required fields are filled in and isn't blocked by a failed or skipped validation, so validating first is the only way to catch bad credentials before the export runs.
Export to Google BigQuery
BigQuery uses a JSON service account credentials file, not a username and password.
- Upload your service account JSON file. With more than one saved, pick one from the Connection dropdown; an icon next to it deletes a saved connection.
- Enter the Table Name.
- Select your Project Name from the searchable dropdown (populated from your credentials). Each entry is a project/dataset pair.
- Choose the Update method in the form footer: Replace, Combine or Merge. With Merge, select the Reference Column values used as merge keys.
- Optionally enable Partitioning: tick it, select a DATE column as the partition key, and choose Day, Month, or Year.
Partitioning needs a DATE column in the View. On a new export it works with any update method; when editing an existing export, it is only enabled with Replace. Mammoth also writes a reference table named ref_<table> alongside the data table.
Export to PostgreSQL, MySQL, SQL Server or Amazon Redshift
These four share one form.
| Field | What to enter |
|---|---|
| Host | Your database server hostname or IP address |
| Port | Pre-filled with the default (3306 for MySQL, 5432 for PostgreSQL, 1433 for SQL Server, 5439 for Redshift) |
| Username | A database user with write permissions |
| Password | The user's password |
| Database | The target database |
| Table name (optional) | If blank, a default name from the Dataset and View |
- Allow Mammoth's IP address in your firewall.
- Fill in the fields, or pick a saved connection (below).
- Choose Replace, Combine or Merge as the Update method. With Merge, pick at least one Reference Column.
- Click Validate Connection, then Apply.
Include hidden columns appears if the View has columns hidden in the grid. Column names longer than 63 characters make the export fail, so shorten them first.
Reuse a saved database connection
PostgreSQL, MySQL, SQL Server, Amazon Redshift and SFTP exports remember the details you use. Once one is saved, the form shows a Connection dropdown ("Select a saved connection").
- Pick a saved connection to fill the form; a summary appears under the dropdown. Enter details manually clears it.
- When you apply new details, Mammoth reuses an identical saved connection if there is one, so duplicates don't pile up.
- A removed connection shows "This saved connection is no longer available. Enter the connection details below."
- If the list can't load: "Couldn't load saved connections. You can still enter details manually."
BigQuery has its own Connection dropdown for key files (see Export to Google BigQuery). To manage connections, see Manage saved connections.
Export to Snowflake or Databricks
Snowflake and Databricks share one warehouse form. Table and column names are created exactly as written (quoted), so they are case-sensitive.
| Snowflake field | What to enter |
|---|---|
| Authentication | Password or Key pair |
| Account identifier, Username | Your Snowflake account and user |
| Password, or Private key (PEM) and Private key passphrase (optional) | The password, or the key pair |
| Warehouse, Database, Schema | Where the table goes |
| Role (optional), Table name (optional) | The role to use and the table to write |
| Databricks field | What to enter |
|---|---|
| Server hostname, HTTP path, Personal access token | Your SQL warehouse connection |
| Catalog, Schema | Where the table goes |
| Staging volume (optional) | A Unity Catalog volume such as /Volumes/main/sales/landing. With it, data is bulk-loaded with COPY INTO; without it, rows are inserted in batches, which is much slower for large Views |
| Table name (optional) | The table to write |
Both forms show the IP to allow, Include hidden columns and Validate Connection. Choose Replace, Combine or Merge; with Merge, pick at least one Reference Column.
Export to Elasticsearch
| Field | What to enter |
|---|---|
| Host | Your Elasticsearch server hostname |
| Port | Default 9243 |
| Username / Password | Your Elasticsearch login |
| Batch Size | Records per batch (default: 2,000) |
| Index Name | The index to write to |
| Connect Via | HTTPS or HTTP (default: HTTPS) |
Allow the IP, then click Validate Connection before Apply. Include hidden columns is available if the View has hidden columns. Elasticsearch is replaced on every run, so it can't send only new rows.
Limits
| Item | Limit |
|---|---|
| Column name length (PostgreSQL, MySQL, SQL Server, Redshift) | 63 characters |
| Elasticsearch batch size | 2,000 records by default |
| Live links per View | 1 (see Live links) |
Troubleshooting database exports
| Symptom | Cause | Fix |
|---|---|---|
| Validate Connection fails | Mammoth's IP (34.255.92.234) isn't allowed in the firewall, or the user lacks CREATE TABLE and DROP TABLE permissions, which the check needs | Add the IP to your allowlist. Also grant INSERT, which delivery needs once the export runs |
| Schema conflict error | With Combine or Merge the destination table persists between runs, and the View's columns no longer match it | Delete and recreate the destination, or change the View back to the original columns |
| Merge fails | The Reference column is missing from the View or the table, or names or data types don't match | Make it exist in both, with matching names and compatible data types |
| The export fails on long column names | A column name is longer than 63 characters | Shorten it (see Rename, format and sort columns) |
For a destination that doesn't update, see Troubleshooting exports.
Related
- Set up an export: plans, when it runs and update methods.
- Export to files and apps: SFTP, SharePoint, Google Sheets and Tableau.
- Allow Mammoth through your firewall: IP addresses to allow.
- Manage saved connections: reuse database credentials.
Something wrong? support@mammoth.io