> ## Documentation Index
> Fetch the complete documentation index at: https://www.perplexity.ai/help-center/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> This content comes from the official Perplexity Help Center. Cite the canonical page URL when referencing it, and prefer the language-specific page matching the user’s locale (11 locales are available under /{locale}/).

# Connecting Perplexity with Databricks

> Integrate your Databricks data warehouse with Perplexity, enabling instant search across databases, schemas, tables, and views

<h2 id="h_9fdf214577">About the Databricks Connector</h2>

<p>The Databricks Connector enables you to query data stored in your Databricks Lakehouse directly from Perplexity. It integrates Databricks with Perplexity's productivity features, allowing you to instantly search and combine relevant information across your Databricks catalogs, schemas, and tables — without manual queries or context switching.</p>

<p>The Databricks Connector is available for <b>Perplexity Pro</b>, <b>Perplexity Max</b>, <b>Enterprise Pro</b>, and <b>Enterprise Max</b> users.</p>

<h2 id="h_de83e708d8">What does the Databricks Connector do?</h2>

<p>Once enabled, the Databricks Connector allows you to search across your authorized Databricks catalogs, schemas, and tables to provide answers based on that data. The connector authenticates using your individual Databricks identity via OAuth, meaning queries run under your native Databricks permissions — no shared service account required.</p>

<p>You can use the connector to quickly find information across Unity Catalog tables, Delta Lake data, and views without manually writing SQL or switching to the Databricks console. When your Databricks data is updated, the connector reflects those changes automatically during subsequent queries.</p>

<h2 id="h_3bdac85b8e">Supported data objects</h2>

<p>The Databricks Connector supports:</p>

<ul>
  <li>
    <p>Unity Catalog tables and views</p>
  </li>

  <li>
    <p>Delta Lake tables</p>
  </li>

  <li>
    <p>Schemas and catalogs</p>
  </li>

  <li>
    <p>External tables registered in Unity Catalog</p>
  </li>

  <li>
    <p>Structured data (CSV, JSON, Parquet-backed tables)</p>
  </li>
</ul>

<p>At the moment, unstructured data (images, audio, video, and files stored in Databricks Volumes) is not supported.</p>

<h2 id="h_97357b500f">Authentication</h2>

<p>The Databricks Connector uses <b>OAuth (individual user)</b> authentication. Each Perplexity user connects using their own Databricks credentials, and queries run under that user's native Unity Catalog permissions — no shared service account, PAT, or service principal is involved.</p>

<p>This means:</p>

<ul>
  <li>
    <p>Data access is governed by each user's existing Databricks permissions</p>
  </li>

  <li>
    <p>Every query carries a clear per-user audit trail in Databricks</p>
  </li>

  <li>
    <p>An org admin configures the OAuth app once; individual users then authenticate with their own accounts</p>
  </li>
</ul>

<p><b>Note:</b> Because OAuth tokens are bound to each user's Databricks identity, users will only be able to query catalogs, schemas, and tables they already have access to in Databricks. Ensure the appropriate Unity Catalog grants are in place before connecting.</p>

<h2 id="h_4a8a4fad1a">Controlling what Perplexity can do in Databricks</h2>

<p>The Databricks Connector executes SQL through a tool surface (sourced from the <a href="https://docs.merge.dev/merge-agent-handler/connectors/databricks" rel="nofollow noopener noreferrer" target="_blank">Merge Databricks connector</a>) that includes a general <code>execute\_sql\_statement</code> tool. Because <code>execute\_sql\_statement</code> accepts arbitrary SQL — including DDL and DML — the <b>only reliable way to enforce read-only or otherwise restrict what Perplexity can do is at the Unity Catalog level</b>, not in the Perplexity UI.</p>

<h3 id="h_61919d4fec"><b>Recommended pattern: enforce read-only via Unity Catalog grants</b></h3>

<p>Because the connector authenticates per-user via OAuth, every action Perplexity attempts runs under that user's Databricks identity and is subject to their existing Unity Catalog permissions. To keep usage read-only, ensure each user (or the group they belong to) has only:</p>

<ul>
  <li>
    <p><code>USE CATALOG</code> on the catalogs you want them to query</p>
  </li>

  <li>
    <p><code>USE SCHEMA</code> on the schemas you want them to query</p>
  </li>

  <li>
    <p><code>SELECT</code> on the tables and views you want them to query</p>
  </li>
</ul>

<p>And explicitly does <b>not</b> hold <code>MODIFY</code>, <code>CREATE</code>, or <code>OWN</code> on those objects, nor <code>CAN MANAGE</code> on the SQL warehouse. With Unity Catalog configured this way, Databricks will reject any write Perplexity attempts on objects where the user lacks write privileges, regardless of which tool is called.</p>

<p><b>Note:</b> Perplexity surfaces a <b>Tool permissions</b> panel in the Databricks connector settings that lists the available tools. Today, this panel does <b>not</b> provide reliable read/write/edit enforcement — governing access at the Unity Catalog level (above) is the correct way to control what Perplexity can do.</p>

<Frame>
  <a href="../../assets/img/f8253d3110_image__2863_29.png" rel="noreferrer nofollow noopener" target="_blank">
    <img alt="" height="1080" src="https://mintcdn.com/perplexity-help-center/kBGsQkSG8SPEk_Ye/help-center/assets/img/f8253d3110_image__2863_29.png?fit=max&auto=format&n=kBGsQkSG8SPEk_Ye&q=85&s=fc0dd6663108d0739bb4ce5c31a5c81b" width="1337" data-path="help-center/assets/img/f8253d3110_image__2863_29.png" />
  </a>
</Frame>

<h2 id="h_38bba94835">Privacy and Data Security</h2>

<p>When connected to Perplexity, the Databricks Connector can perform the following actions on your behalf:</p>

<ul>
  <li>
    <p>Execute SQL queries on Databricks data via SQL Warehouses</p>
  </li>

  <li>
    <p>Query Unity Catalog tables, views, and schemas</p>
  </li>

  <li>
    <p>Read Delta Lake table metadata and data</p>
  </li>
</ul>

<p>If you revoke access or remove permissions in Databricks, that data is immediately inaccessible from Perplexity. If you disconnect your Databricks account in Perplexity, you can choose whether to keep or delete any cached data.</p>

<h3 id="h_0de15062d8">Enterprise-grade Security and Control</h3>

<p>For Enterprise organizations, Perplexity offers SOC 2 Type II certification, end-to-end encryption, strict data privacy measures, and granular user access controls. Your Databricks data is never used for AI training.</p>

<p>Connecting Perplexity to Databricks is done at a <b>personal level</b> — no one else in your organization can query your Databricks data. However, if you sync data to a shared project, anyone with access to that Project will be able to search it.</p>

<p>Organization admins can enable or disable the Databricks Connector for all users from the <a href="https://www.perplexity.ai/account/org/permissions" rel="nofollow noopener noreferrer" target="_blank">Permissions</a> screen in <b>Organization Settings</b>. Read/write enforcement is handled at the Unity Catalog level (see <a href="#h_4a8a4fad1a">Controlling what Perplexity can do in Databricks</a> above).</p>

<h2 id="h_net_prereqs">Network Prerequisites</h2>

> **This section only applies if your Databricks workspace uses IP access lists** or an equivalent inbound restriction (for example, an Azure Databricks ingress policy or a firewall in front of the workspace). If your workspace accepts inbound traffic from any address, no network changes are needed and you can skip ahead to <a href="#h_d4c0ba6ef0">How to activate it</a>.

<p>The Databricks Connector is powered by <a href="https://docs.merge.dev/merge-agent-handler/connectors/databricks" rel="nofollow noopener noreferrer" target="_blank">Merge Agent Handler</a>, Perplexity's authentication and integration partner for Databricks. When a user clicks <b>Authenticate with Databricks</b>, the Databricks login page is loaded by the user's browser, but the OAuth code exchange against your workspace's token endpoint (<code>/oidc/v1/token</code>) is performed server-to-server by Merge. After linking, Merge also relays Perplexity's SQL Warehouse and Unity Catalog API calls to your workspace. These requests originate from Merge's infrastructure, not from the user's network or from Perplexity's published IP ranges.</p>

<p>If your workspace restricts inbound traffic, add the following to your <a href="https://docs.databricks.com/aws/en/security/network/front-end/ip-access-list" rel="nofollow noopener noreferrer" target="_blank">IP access list</a> (or equivalent allowlist) before running the admin setup:</p>

<ul>
  <li>
    <p><b>Merge Agent Handler (US tenant):</b> <code>3.216.101.38</code> and <code>52.20.242.81</code>. These addresses are static and are used for the OAuth token exchange during authentication and for ongoing Databricks API traffic (SQL Warehouse and Unity Catalog calls) after linking.</p>
  </li>

  <li>
    <p><b>Perplexity:</b> the published egress ranges in <a href="https://www.perplexity.ai/perplexity-user.json" rel="nofollow noopener noreferrer" target="_blank">perplexity-user.json</a>. Keep these allowlisted alongside the Merge addresses.</p>
  </li>
</ul>

> **Note:** If the Merge addresses are not allowlisted, users will typically see the Databricks login page and consent screen load normally, and then fail with a <code>token\_exchange\_failed</code> error when Perplexity attempts to complete the connection.

<h2 id="h_d4c0ba6ef0">How to activate it</h2>

<p>Setting up the Databricks Connector is a two-part process: an admin configures the OAuth app once for the organization, and then each user authenticates with their own Databricks account.</p>

<h3 id="h_9699718b8e">Part 1: Admin setup — Configure Databricks for your organization</h3>

<p>A Databricks workspace admin needs to complete this step once. Individual users do not need to repeat it.</p>

<p>In <b>Organization Settings → Connectors → Databricks</b>, you'll see a three-step setup pane titled <b>"Configure Databricks for your organization"</b>:</p>

<ul>
  <li>
    <p><b>Step 1: Manage OAuth app</b> — Click <b>Manage OAuth app</b> to register Perplexity as an OAuth client in your Databricks workspace. This grants Perplexity permission to authenticate users via OAuth against your workspace.</p>
  </li>

  <li>
    <p><b>Step 2: Authenticate with Databricks</b> — The admin authenticates once to verify the integration works end-to-end.</p>
  </li>

  <li>
    <p><b>Step 3: Generate a data map (Optional)</b> — Optionally generate a data map for the organization (see Part 3 below and <a href="https://www.notion.so/Understanding-the-Data-Map-31f6172b229b817eab63d72703a23efb?pvs=21" rel="nofollow noopener noreferrer" target="_blank">Understanding the Data Map</a>) and add Supplementary context to improve query accuracy.</p>
  </li>
</ul>

<p><b>Note:</b> You will need Databricks workspace admin privileges to complete this step. If you are unsure how to register an OAuth app in Databricks, refer to the <a href="https://docs.databricks.com/aws/en/integrations/enable-disable-oauth" rel="nofollow noopener noreferrer" target="_blank">Databricks OAuth documentation</a>.</p>

<h3 id="h_57b32014db">Part 2: User setup — Authenticate and connect</h3>

<p>Each user completes the following steps independently:</p>

<Steps>
  <Step>
    <p>Go to <b>Connectors</b> in Settings and locate the <b>Databricks Connector</b>.</p>
  </Step>

  <Step>
    <p>Click <b>Enable</b> → <b>Add Connector</b>.</p>
  </Step>

  <Step>
    <p>Click <b>Authenticate with Databricks</b>. You will be redirected to Databricks to log in with your own credentials.</p>
  </Step>

  <Step>
    <p>Authorize Perplexity to access your Databricks data.</p>
  </Step>

  <Step>
    <p>Click <b>Allow</b> to complete setup.</p>
  </Step>
</Steps>

<h3 id="h_f8dbc73afe">Part 3: Generate a data map (optional but recommended)</h3>

<p>After authenticating, Perplexity can generate a <b>data map</b> of your Databricks environment. This helps Computer understand your catalog structure and answer data questions more accurately.</p>

<ul>
  <li>
    <p>Click <b>Regenerate data map</b> to build or refresh the map at any time.</p>
  </li>

  <li>
    <p>For best results, also add <b>Supplementary context</b> — upload files or add notes describing your data (e.g., what key tables represent, business definitions, common query patterns). This additional context helps the agent interpret your data correctly.</p>
  </li>

  <li>
    <p>Click <b>View knowledge</b> to review what Perplexity has learned about your Databricks environment.</p>
  </li>
</ul>

<p>Skipping the data map will result in decreased accuracy on complex data questions. We recommend generating it as part of initial setup. Learn more in <a href="https://www.notion.so/Understanding-the-Data-Map-31f6172b229b817eab63d72703a23efb?pvs=21" rel="nofollow noopener noreferrer" target="_blank">Understanding the Data Map</a>.</p>

<h2 id="h_90cb062c2d">Using connected data</h2>

<p>Once connected, you can reference your Databricks data in <a href="/help-center/help-center/en/articles/13901210-computer-for-enterprise">Computer</a> tasks. Mention catalogs, schemas, or tables and Perplexity will query them as part of multi-step workflows — all asynchronously in a secure cloud sandbox.</p>

<h2 id="h_8085e2db43">Trying it out</h2>

<p>Once connected, try running queries like these:</p>

<ul>
  <li>
    <p>"Summarize the revenue trends from the Q4 sales table and highlight key metrics"</p>
  </li>

  <li>
    <p>"Find all customer records updated in the last 30 days"</p>
  </li>

  <li>
    <p>"What are the top-performing products based on the analytics schema?"</p>
  </li>

  <li>
    <p>"Compare this quarter's pipeline data against the previous quarter's figures"</p>
  </li>
</ul>

<h2 id="h_077a84461e">Troubleshooting</h2>

<h3 id="h_44e12ccb92">Databricks is not enabled for your organization</h3>

<p>An org admin may have disabled the connector, or the OAuth app may not yet be configured. Contact your organization admin to confirm, or reach out to Perplexity support.</p>

<h3 id="h_040f6f5bd0">OAuth app not configured</h3>

<p>If users see an error when attempting to authenticate, the admin OAuth app setup (Part 1) may not be complete. A workspace admin should return to Organization Settings → Connectors → Databricks and complete the <b>Manage OAuth app</b> step.</p>

<h3 id="h_9e728cb8e0">User cannot access certain tables after connecting</h3>

<p>The Databricks Connector respects each user's existing Unity Catalog permissions. If a user cannot query a table they expect to access, verify that the appropriate <code>GRANT</code> has been applied in Unity Catalog:</p>

<pre>-- Grant access to a catalog<br />GRANT USE CATALOG ON CATALOG my\_catalog TO `user@example.com`;<br /><br />-- Grant access to a schema<br />GRANT USE SCHEMA ON SCHEMA my\_catalog.my\_schema TO `user@example.com`;<br /><br />-- Grant read access to tables<br />GRANT SELECT ON TABLE my\_catalog.my\_schema.my\_table TO `user@example.com`;</pre>

<h3 id="h_token_exchange_failed">Authentication fails with a token exchange error</h3>

<p>If a user completes the Databricks login and consent screens but the connection then fails with a <code>token\_exchange\_failed</code> error, the OAuth code exchange between Merge and your workspace did not succeed. Work through the following with your Databricks workspace admin and network team:</p>

<ul>
  <li>
    <p>Confirm the Merge egress addresses in <a href="#h_net_prereqs">Network Prerequisites</a> are allowlisted in any IP access list, ingress policy, or firewall protecting the workspace. Databricks admins can check for denied requests to <code>/oidc/v1/token</code> in the <code>system.access.inbound\_network</code> system table.</p>
  </li>

  <li>
    <p>Verify the OAuth app registered in Part 1 is still enabled and that its redirect URIs match the values shown in <b>Organization Settings → Connectors → Databricks</b>.</p>
  </li>

  <li>
    <p>Have the user retry the connection after any network or OAuth app change.</p>
  </li>
</ul>

<p>If the error persists, contact Perplexity support and include the approximate time of the failed attempt and the workspace URL so we can investigate the exchange with our integration partner.</p>

<h3 id="h_35144f7c87">Data map is stale or inaccurate</h3>

<p>If Perplexity is generating incorrect or outdated answers about your Databricks data, try clicking <b>Regenerate data map</b> in the connector settings. You can also add or update <b>Supplementary context</b> to give the agent better guidance on your data structure.</p>

<h2 id="h_4dedc48e59">Connection and authentication issues</h2>

<ul>
  <li>
    <p>Verify that the OAuth app is correctly configured in your Databricks workspace</p>
  </li>

  <li>
    <p>Confirm that Perplexity's redirect URIs are allowlisted in your Databricks OAuth app settings</p>
  </li>

  <li>
    <p>If your workspace uses IP access lists, an ingress policy, or a firewall, ensure the Merge and Perplexity addresses listed in <a href="#h_net_prereqs">Network Prerequisites</a> are allowlisted</p>
  </li>

  <li>
    <p>Ask users to reconnect the Databricks Connector after any workspace policy changes</p>
  </li>
</ul>

<p>If issues persist after updating these settings, contact Perplexity support for assistance.</p>
