---
title: Manage and work with foreign catalogs
description: Learn how to work with foreign catalogs that mirror an external database, using Databricks Lakehouse Federation.
canonical_url: https://docs.databricks.com/aws/en/query-federation/foreign-catalogs
---

# Manage and work with foreign catalogs

A foreign catalog is a securable object in Unity Catalog that mirrors a database in an external data system. It lets you run read-only queries on that data system from your Databricks workspace, and manage access using Unity Catalog.

You work with a foreign catalog the same way you work with any catalog managed by Unity Catalog, with the differences described in the following table.

| Task                            | Details                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               | Reference                                                                                                                         |
| ------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------- |
| View foreign catalog details    | Catalog Explorer shows the same details as standard Unity Catalog catalogs, plus the **Connection** used by the foreign catalog and the external database or catalog it mirrors.                                                                                                                                                                                                                                                                                                                                                                                                      | [View catalog details](https://docs.databricks.com/aws/en/catalogs/manage-catalog.md#view-catalog)                                |
| Query data in a foreign catalog | You can run read-only queries on tables in a foreign catalog.<br /><ul><li>You must use Apache Spark data types in your queries. For a mapping of Spark data types to your external database data types, see the article for your connection type in the left navigation pane.</li><li>On dedicated access mode compute, you must own the underlying connection to query data in the foreign catalog. The `CREATE FOREIGN CATALOG` privilege on the connection isn't sufficient.</li><li>On standard access mode and serverless compute, standard catalog privileges apply.</li></ul> | [Query data](https://docs.databricks.com/aws/en/query/index.md)                                                                   |
| Grant access to foreign tables  | You grant read-only access to foreign tables using standard Unity Catalog privileges.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 | [Manage privileges in Unity Catalog](https://docs.databricks.com/aws/en/data-governance/unity-catalog/manage-privileges/index.md) |
| View data lineage               | Databricks tracks data lineage for tables in foreign catalogs the same way it tracks lineage for standard Unity Catalog tables.                                                                                                                                                                                                                                                                                                                                                                                                                                                       | [Lineage in Unity Catalog](https://docs.databricks.com/aws/en/data-governance/unity-catalog/data-lineage.md)                      |
| Create a foreign catalog        | You create a foreign catalog as part of setting up a connection to an external data source. If you use the UI to create the connection, foreign catalog creation is included in that flow.                                                                                                                                                                                                                                                                                                                                                                                            | [Create a foreign catalog](https://docs.databricks.com/aws/en/query-federation/database-federation.md#foreign-catalog)            |
