Skip to main content

Selecting a datasource

Every conversation in Qry is bound to a single schema of a single datasource. The Catalog is where you find and open one, through a three-level hierarchy: datasource → catalog → schema.

This page covers what each level means, how to change schema, and what to do when you don't see what you expect.

The three levels​

Datasource A connection your administrator configured: PostgreSQL, BigQuery, Snowflake, Starburst, Databricks, SAP HANA, Oracle, SQL Server, Redshift, Cloudera, Salesforce, etc. You can only see datasources you've been granted access to via RBAC.

Catalog The top-level grouping inside a datasource. The exact meaning is database-specific:

  • BigQuery — a project.
  • Snowflake / Databricks — a database / catalog.
  • PostgreSQL — a database.
  • SAP HANA — a database + module combination (see SAP module integration for details).

Schema The collection of tables your queries actually run against. A conversation is bound to one schema; SQL written in the chat targets that schema by default.

Steps​

1. Open the Catalog​

Click Catalog in the navigation (the database icon, under Data). The Catalog is a workbench: the tree of datasources on the left, the detail of whatever you select on the right.

The Catalog: datasources in the tree, nothing selected yet

The tree lists every datasource your account can browse, each with its engine on the right. Filter tables at the top finds a table by name across the datasources you have opened.

2. Open a datasource​

Click a datasource. The tree expands to its catalogs, and the right pane shows how many tables are cached for it and when its schema was last synced, with Refresh schema to read it again.

A datasource opened: its catalogs in the tree, its schema status on the right

3. Drill into a catalog and schema​

Expand a catalog to see its schemas, and click the schema you want to work with.

A schema selected: its tables listed on the right

The right pane summarises the schema — tables, views, how many are profiled, the datasource — and lists its tables. Click a table to see its columns and preview a sample of its data without leaving the Catalog.

4. Open in chat​

Click Open in chat at the top right. Qry starts a new conversation bound to this schema.

Switching schema mid-conversation​

A conversation keeps the schema it started with: its history refers to that schema's tables, and asking for "the same again" on another one can give confusing answers when table or column names don't line up. To work on another schema, open it in the Catalog and click Open in chat — Qry starts a new conversation, and the previous one stays in your history.

Common issues​

The datasource I expected isn't in the tree. You don't have an RBAC grant for it. Contact your administrator. See Connecting databases for the admin side.

The datasource is there but the catalog tree is empty. You have datasource-level access but no catalog-level grants. Some tenants configure RBAC at the catalog or schema level — your admin can extend or refine the grant.

A table is in the schema but a query against it errors with "permission denied". Table-level grants and ABAC tag policies operate independently of schema-level access. Your admin can tell you which rule is hiding the row or column.

A new table doesn't appear. The schema is cached so that browsing never wakes the engine. New tables are picked up within the hour, or the first time a query names one; Refresh schema on the datasource reads it again right away.

See also​