Skip to content

Data connections

10 min read · Updated 6 Nov 2026

A data connection gives Astrato access to a database or other source. Once it exists, you can use it when creating a semantic layer. What you can do with an existing connection follows the access granted on it.

The Data Connections list showing each connection’s name, source, connection details, Deployment Region and number of semantic layers

Before you start: you need a workspace role that can create data connections: Owner, Admin or Creator. A Viewer has a Data item on the rail instead, and never sees New connection; a Designer has no Data & AI item at all. To check your role, select your profile picture at the top right to open the account menu: your role is shown under your name and email. If it is not one of those three, ask a workspace administrator (see How access works).

The account menu open under the profile picture, which is outlined at the top right, with an arrow pointing at the role Owner shown under the name and email

Have the credentials for your source ready; its guide lists them. One more thing saves a failed validation later:

  • Network access. If the database sits behind a firewall, a cloud security group or a Snowflake network policy, it must accept connections from Astrato’s addresses. See Allow Astrato’s addresses.

The pictures below follow one PostgreSQL connection from start to finish. Other sources ask for different fields in steps 2 and 3; Connecting to Snowflake walks the same steps with Snowflake’s screens.

  1. Open Data & AI → Data Connections, select New connection and choose your source.

    The Data Connections page in Data & AI with the New connection button outlined at the right of the toolbar above the list

    The New connection panel listing the available sources, including Snowflake, Google BigQuery, ClickHouse, Databricks, Amazon Redshift, Supabase, DuckDB, Dremio and PostgreSQL

  2. Under Authentication, choose an authentication method if the source offers more than one, then enter the credential. PostgreSQL asks for a Username and Password.

  3. Under Connection details, enter where the source is. For example:

    Source Authentication Connection details
    Snowflake Private key (Recommended), Sign in with Snowflake or Password (legacy), with Username Account URL, such as ab12345.eu-west-2.aws.snowflakecomputing.com
    PostgreSQL Username and Password Host, Port (5432 by default), SSL mode (require by default) and optional certificates

    For a sign-in method (Snowflake or Databricks OAuth), select a configured connection, select Sign in, and complete authorization in the new window. Existing authorization can be reused; see OAuth connections. DuckDB (MotherDuck) asks only for its service token, so its connection details hold only the Deployment Region: you select its database after validating, from the databases the token can reach.

    The New PostgreSQL connection panel filled in: Username and Password under Authentication, then Host db.example.com, Port 5432, SSL mode require and three optional SSL certificate boxes under Connection details, with the Validate Connection button below

  4. If your workspace shows Deployment Region, you can leave it for now. It sets where queries reach your database from, and so which addresses it must allow, and a Data App cannot be published on this connection until one is chosen; see Choose a Deployment Region.

  5. Select Validate Connection. It stays unavailable while a required field is empty, and the form lists those fields after “Still needed:”. Snowflake then offers role and warehouse choices; select a warehouse before saving. Dremio lists its sources once a project is selected. If your token reaches only one project, it is selected automatically.

    The New PostgreSQL connection panel with Username and a masked Password filled in, Host left empty showing its db.example.com placeholder, Port 5432 and SSL mode require, and below the unavailable Validate Connection button the hint Still needed: Host.

  6. Select the database, review the name and select Save connection.

    A New PostgreSQL connection panel after validating: a Validation result reading Connected to PostgreSQL in 140 ms, Data to use with Database sales and Schema left at (Default), and Connection name Revenue Analysis above the Save connection button

  7. Once the connection exists, select a schema or leave it for later, then select Finish.

    A New PostgreSQL connection panel after saving: Connection created with “Choose a schema now, or finish to use this connection.”, a Schema list set to Choose later and a Finish button

  • After Validate Connection, a Validation result section says “Connected to source in n ms.” and the lists below it fill in with the databases the credential can reach. Until then they read “Available once the connection validates.”
  • After Save connection, the panel shows Connection created.
  • After Finish, the connection is in the Data Connections list with its name, source, connection details and Deployment Region.

A saved connection proves that Astrato could sign in. To see that it can also read your tables, look at them from a semantic layer before you start modelling:

  1. In Data & AI → Semantic Layers, select Create, then New Semantic Layer, choose this connection under Datasource and select Create. See Create a semantic layer.

  2. In the editor, select Add, then Tables & Views, and open a schema. Its tables are listed from the database, through this connection.

    The editor’s Map tab with the Tables & Views panel open, listing the schemas in the connected data source

If a schema you expected is missing or opens empty, the database user cannot see it: fix its grants in the source’s guide. To look at rows as well, add a table and use Preview data on its header. Data Preview reads the published layer, so on a new layer it first offers Publish and preview; see Look at the rows.

If validation fails, an error notice at the bottom of the panel usually starts “Connection validation failed” and lists details, usually including a “Source message:” line with the source’s own error. When a data connection will not validate explains each notice, lists the checks to make in order, and covers every other message the panel shows.

A red notice at the bottom of the New PostgreSQL connection panel reading Connection validation failed: the source refused the credentials or sign-in, listing HTTP status 401, Error code 28P01, the source message password authentication failed for user astrato_reader, Step: Testing the connection, the request and a correlation ID, with a Copy details button

A source that cannot be created here is dimmed in the source list. Hover over or focus it to see why; selecting it shows the reason below the list.

The Source tiles in the New connection panel with Google Sheets and Demo data dimmed, and the reason for Demo data outlined below the tiles

Demo data is one of these: Astrato does not offer a hosted sample connection yet. If you have no database credentials and your data is a CSV file, see Bring in a CSV file. Google Sheets connections cannot be created in the new lobby yet: use the old lobby to create one (see Lobby navigation).

Schema browsing happens after the connection is created. If schema lookup fails, retry it or finish and select the source later. The connection already exists; creating another is unnecessary.

A password with leading or trailing spaces is rejected. Use the explicit trim action to remove them before validating again. Private-key and service-account JSON documents have surrounding formatting whitespace removed.

The New PostgreSQL connection panel with a masked Password and below it Remove leading or trailing spaces before validating, with the Trim it button outlined

When replacing credentials on an existing connection, Validate Connection tests the new credentials. Successful validation clears errors from loading choices with the old saved credentials and preserves your selected schema. Save the replacement before browsing schemas with it; schema browsing uses the saved connection.

The Edit Operations Postgres panel open beside the Data Connections list, with the pencil on that connection’s row outlined and the Replace password button outlined in the panel

The steps above are the same for every source. What differs is the credentials it asks for, and what it is capable of once connected. Each source has its own guide:

Source Setup guide
Snowflake Connecting to Snowflake
Google BigQuery Connecting to Google BigQuery
Databricks Connecting to Databricks
Amazon Redshift Connecting to Amazon Redshift
PostgreSQL Connecting to PostgreSQL
ClickHouse Creating a connection to ClickHouse, or through its PostgreSQL interface
Supabase Connecting to Supabase
DuckDB (MotherDuck) Connecting to MotherDuck
Dremio Connecting to Dremio Cloud
Google Sheets Connecting to Google Sheets

Some sources have more to know once the connection works:

Astrato also appends metadata to every query it sends, so your warehouse’s own query log can be turned into a usage and cost dataset: Snowflake, BigQuery, ClickHouse and PostgreSQL or Supabase.

If your workspace offers Deployment Region, it is the region your Data Apps are deployed from by default, and the one Astrato’s queries reach your database from. It does not move your database. Choose the region closest to your users and your data source.

A connection left at Legacy / not selected can still carry semantic layers, but a Data App cannot be published on it. You do not have to decide while creating the connection: select the connection in the list later, choose Deployment Region and select Save changes. Your database must accept traffic from the region you choose; the form names the addresses to allow.

The New PostgreSQL connection panel with Deployment Region europe-west2 chosen and the line Allow traffic from 34.142.20.10, 34.142.20.11 at your database outlined below it

How regions route traffic, the bulk Set Deployment Region flow and what MCP does with regions are in Advanced data connection settings.

A dynamic connection uses each viewer’s own connection settings in published workbooks. It is available for Google BigQuery → Service account and ClickHouse → Password. See Dynamic connections for how to set it up.

The connection list shows how many semantic layers read each connection, so you can see what depends on a connection before you change or remove it.

The Data Connections list with the Semantic layers column heading outlined, showing 4 for Analytics warehouse, a dash for Lakehouse and 1 for Operations Postgres

A dash (—) means the number is unknown rather than zero: the list of layers could not be read, or a page of it took longer than ten seconds, or the workspace holds more than 2,000 semantic layers, which is as many as Astrato counts.

Creating, duplicating or deleting a semantic layer from Data & AI updates the number straight away. Otherwise counts are reused for about five minutes, so a layer added or removed elsewhere in Astrato can take that long to show here.

Like the matching count in the semantic layer list, this column is shown to workspace owners and administrators only — see Who sees this column for why.

Advanced data connection settings covers what most people need only later: how Deployment Regions route traffic, dynamic connections, OAuth sign-in from the editor and from MCP, creating a connection through an assistant, and expired or interrupted operations.

A connection on its own answers no questions. The next step is a semantic layer built on it.