---
title: Ingest data into Lakeflow Designer
description: "Bring data into Lakeflow Designer: browse Unity Catalog tables, drag in local or workspace files, or connect Google Drive, SharePoint, and external databases."
canonical_url: https://docs.databricks.com/aws/en/designer/ingest-data
---

# Ingest data into Lakeflow Designer

You can bring any data accessible through Databricks into a visual data prep in Lakeflow Designer.

All data ingestion in Designer starts with the **Source** operator. Add a source from the welcome screen or open a Source operator's configuration pane to choose your data.

## <a id="browse" />Browse existing tables

On the welcome screen, select a table from **Suggested**, **Favorites**, or **Recently used** to add it as a Source operator. Use the category menu to switch lists, or click **Browse all data** to find another table.

In a Source operator's configuration pane, click **Browse existing** to open the asset selector and browse tables and volumes in Unity Catalog. Use this option when your data is already in Databricks.

You can also select a Unity Catalog metric view as a source. When you select a metric view, select the dimensions and measures to include, and Designer generates the aggregated query.

## <a id="external-database" />Create an external database connection

In an unconfigured **Source** operator, select **Create external database connection** to connect to an external database. Designer creates a Unity Catalog connection and a [foreign catalog](https://docs.databricks.com/aws/en/query-federation/database-federation.md#setup-overview), then opens the catalog so you can select a table.

Creating a new Unity Catalog connection requires the [`CREATE CONNECTION`](https://docs.databricks.com/aws/en/data-governance/unity-catalog/access-control/privileges-reference.md#create-connection) and [`CREATE CATALOG`](https://docs.databricks.com/aws/en/data-governance/unity-catalog/access-control/privileges-reference.md#create-catalog) privileges on the Unity Catalog metastore. To list, grant access to, or drop the connection later, see [Manage connections for Lakehouse Federation](https://docs.databricks.com/aws/en/query-federation/connections.md). To manage the foreign catalog, see [Manage and work with foreign catalogs](https://docs.databricks.com/aws/en/query-federation/foreign-catalogs.md).

Designer supports the following connection types:

* Amazon Redshift
* Azure Synapse
* Databricks
* Google BigQuery
* MySQL
* Oracle
* PostgreSQL
* Salesforce Data Cloud
* Salesforce Data Cloud File Sharing
* Snowflake
* SQL Server
* Teradata

If a data source is not available directly in Designer, check [Lakeflow Connect](https://docs.databricks.com/aws/en/ingestion/overview.md) for a managed connector. Lakeflow Connect supports ingestion from SaaS applications (Salesforce, Workday, HubSpot, and more), databases, cloud storage, and streaming sources. After you ingest data with Lakeflow Connect into a Unity Catalog table, you can use it as a Source in Designer.

## <a id="folder-volume" />Ingest a folder or volume

Instead of an individual file, the Source operator can target an entire Unity Catalog volume or folder path. Designer detects the format from the files in the folder and loads them into a single table:

* For structured file formats such as CSV, JSON, Excel, and Parquet, Designer reads all of the files and combines their rows into one table.
* For document files such as PDFs, Designer reads each file as a single row, so you get one row per file.

## <a id="drag-drop" />Drag and drop a file

Drag a file onto the canvas from the workspace file browser or from your local device to automatically create a **Source** operator. For local files, Designer uploads a copy to a Unity Catalog volume for the operator to read.

> [!NOTE]
>
> Drag and drop of Excel files requires Excel File Format Support to be enabled. See [Read and stream Excel files](https://docs.databricks.com/aws/en/query/formats/excel.md).

When you add a CSV file, Designer samples the file to detect a comma, tab, semicolon, or pipe delimiter. Check the Source operator's preview to confirm that columns are separated correctly. If the sample is ambiguous or Designer cannot read it, Designer uses the default delimiter. Set **Delimiter** in the Source operator's file options when automatic detection does not match your file.

## <a id="import-as-source" />Start a visual data prep from files

To start a new visual data prep from one or more files, open the **Visual data prep** page, click the drop-down arrow next to **New**, select **Import file**, and then select **As source**. Upload one or more CSV, JSON, Excel, or PDF files. Designer creates a visual data prep with a Source operator for each file.

## <a id="create-table" />Create a table from a file

Select **Create table from file** in the Source configuration pane to upload a local CSV or Excel file and create a Unity Catalog table from it. Use this option when you want the data persisted as a managed table rather than stored in a volume. Additionally, for large amounts of data, this provides the best performance. Uploaded files are subject to the Unity Catalog volume file size limit. See [Work with files in Unity Catalog volumes](https://docs.databricks.com/aws/en/volumes/volume-files.md).

## <a id="google-drive" />Import from Google Drive

To import a file from Google Drive:

1. In the Source configuration pane, select **Import from Google Drive**.
2. Select an existing Unity Catalog connection that has access to Google Drive, or select **Create connection** to create one.
3. Provide the file URL.

For connection requirements and setup instructions, see [Ingest files from Google Drive](https://docs.databricks.com/aws/en/ingestion/google-drive.md).

## <a id="sharepoint" />Import from SharePoint

To import a file from SharePoint:

1. In the Source configuration pane, select **Import from SharePoint**.
2. Select an existing Unity Catalog connection that has access to your SharePoint site, or select **Create connection** to create one.
3. Provide the **direct file link**.

> [!WARNING]
>
> To get the correct URL, right-click the file in SharePoint, select **Preview**, and copy the URL from the browser address bar. Do not use a sharing link.

For connection requirements and setup instructions, see [Ingest files from SharePoint](https://docs.databricks.com/aws/en/ingestion/sharepoint.md).

## <a id="spreadsheet-range" />Select a worksheet and cell range

The supported cell-range formats depend on where the spreadsheet is stored.

### <a id="managed-spreadsheet-range" />Google Drive and Microsoft 365 files

When you import a Google Sheets or Excel file from Google Drive, SharePoint, or OneDrive, use **Sheet name** and **Cell range** to select the data to read:

1. Provide the file URL in the source's import dialog.
2. Optional: enter **Sheet name** to select a worksheet.
3. In **Cell range**, enter a cell reference such as `A1`, a range such as `A1:B10`, or a column range such as `A:A`.
4. Click **Load**, then check the Source operator's preview. You can adjust **Sheet name** and **Cell range** in the Source configuration pane and apply the change.

A cell range without a sheet name reads the first sheet, even if the URL opens another tab. CSV and TSV sources do not use spreadsheet sheet and range controls.

### <a id="volume-excel-range" />Excel files in a volume

For Excel files in a Unity Catalog volume, select or enter **Sheet name** in the Source operator's configuration pane. To read part of the sheet, enter a range with both endpoints in **Cell range**, such as `A1:B10`. Single cells (`A1`) and whole-column ranges (`A:A`) aren't supported. Leave **Cell range** empty to read the whole sheet.

## <a id="next-steps" />Additional resources

* [Tutorial: Build a visual data prep](https://docs.databricks.com/aws/en/designer/build-transformation.md)
* [Built-in operators in Lakeflow Designer](https://docs.databricks.com/aws/en/designer/built-in-operators.md)
