PlatformManager can load data from Databricks into a Pricefx partition. An Automated Data Upload reads a table from Unity Catalog and loads its rows into a Pricefx entity. The upload runs at regular intervals, or when you click Run Now. Databricks stays the system of record.
This page explains how the integration works, what it needs, and what Pricefx reads and stores. For the setup steps, see Configure the Integration.
How It Works
-
A Databricks connection on the partition stores the workspace host, the SQL warehouse ID, and the OAuth credentials of a Databricks service principal.
-
An Automated Data Upload uses the connection. It names one table and maps the table columns to fields of a Pricefx entity.
-
At each run, PlatformManager sends the job to Integration As A Service (IaaS). An IntegrationManager job reads the table through the SQL warehouse and loads the rows into the entity.
Each run loads a full snapshot of the table. Incremental loads are not supported. At the start of the run, the job reads the latest version of the table and uses that version for the whole run. Changes written to the table during the run appear in the next run.
Supported Databricks Environments
|
Item |
Supported |
|---|---|
|
Cloud |
Databricks on AWS, Microsoft Azure, or Google Cloud. Pricefx communicates with Databricks only through the Databricks APIs, so the cloud that hosts the workspace does not matter. |
|
Catalog |
Unity Catalog. PlatformManager lists catalogs, schemas, and tables through the Unity Catalog API. |
|
Source object |
A table in Delta Lake format, the default table format in Databricks. Pricefx cannot load a view, or a table in another format such as Parquet. |
|
Compute |
A Databricks SQL warehouse. |
Authentication and Permissions
Pricefx uses OAuth machine-to-machine (M2M) authentication with a Databricks service principal. Pricefx gets short-lived access tokens with the client ID and OAuth secret of the service principal, and renews them automatically.
The service principal needs access to the SQL warehouse and to the tables you want to load. For the required permissions, see How to Create Databricks Connection.
What Pricefx Reads and Stores
|
Data |
What Pricefx does with it |
|---|---|
|
Catalog, schema, and table names |
PlatformManager reads them from Unity Catalog when you browse in the upload wizard. It keeps the table lists in memory only. |
|
First 50 rows of the table |
PlatformManager shows them in the Preview of the upload wizard. It does not store them. |
|
Rows of the selected table |
The IntegrationManager job loads them into the selected entity on the partition. Pricefx stores them like any other partition data. |
|
Connection settings |
PlatformManager stores the workspace host, the warehouse ID, the client ID, and the default catalog and schema. |
|
OAuth client secret |
PlatformManager stores it encrypted and never shows it again. It sends the secret to the IaaS job in encrypted form. |
|
Upload settings |
PlatformManager stores the selected table, its column names and types, the column mapping, and the schedule. It uses the stored columns to detect schema changes. |
Pricefx does not read system tables, information_schema, lineage, audit logs, or billing data.
Network Access
Two Pricefx components connect to your Databricks workspace over HTTPS:
|
Component |
Connects for |
|---|---|
|
PlatformManager |
Test connection, browsing in the upload wizard, the Preview, and a column check through Unity Catalog before each run. |
|
IaaS job (IntegrationManager) |
Each upload run: the access token, the SQL statements, and the download of the query result. |
Databricks returns the query result of a run as files in cloud storage, with a short-lived link to each file. The IaaS job downloads the files from these links.
If your workspace uses IP access lists, allow the Pricefx addresses listed in Public NAT Gateway IP Addresses. PlatformManager connects from the Platform addresses.
Pricefx sends the user agent pricefx_platform/1.0 with its requests to the workspace.
Compute Usage
Pricefx runs SQL statements on your SQL warehouse. Databricks charges this compute to your account like any other query.
|
Action |
Statements on the SQL warehouse |
|---|---|
|
Test connection |
|
|
Preview in the upload wizard |
One query for the first 50 rows. |
|
Each upload run |
|
Browsing catalogs, schemas, and tables does not use the SQL warehouse.
An upload run waits until a stopped SQL warehouse is running. Test connection and Preview do not wait.
Limitations
-
A Databricks connection can only be the source of an upload. It is not available as a Data Download destination.
-
The catalog, schema, and table names can contain only the letters A to Z, digits, and underscores. A name that starts with a digit does not work.
-
A run fails if the query result is larger than 100 GiB, the Databricks limit for one result.
Other limitations apply when you create or run an upload, for example with filters or schema changes. See How to Create Automated Data Upload from Databricks.
Configure the Integration
-
Create a Databricks connection on the partition. See How to Create Databricks Connection.
-
Create an Automated Data Upload with Databricks selected in Data source. See How to Create Automated Data Upload from Databricks.
-
Check each run in History Of Runs. See History of Runs.