Lookup Tables for Data Models: Steps to Create and Load in Destination Platform

Modified on Thu, 6 Aug at 10:46 AM

COMMENT: Need help navigating the support articles? Go to Get Started

Before you start

  • You have a BI Connector Data Source set up for Data Models. If not, set up your Data Source first.
  • You have the name of the destination schema and know which destination platform you are loading data into (for example, SQL Server, Snowflake, Databricks, Oracle, Fabric SQL).
  • You have the list of base tables you want to pipeline to the destination platform.

 

Part A — Create the Lookup Table in BI Connector

What is a Lookup Table? A Lookup Table is a table of tables — it holds the list of Oracle Fusion tables you want to move to your destination platform, along with their critical attributes such as Primary Key, Watermark column, and refresh frequency. BI Connector and your pipeline refer to this Lookup Table to know what to fetch and how.

 

Step 1 — Open the Data Pipeline section

Click Data Pipeline on the left pane, then click + New Lookup Table.

 

Step 2 — Fill in the Lookup Table details

Fill in the following fields:

  • Lookup Table Name — enter a name for this Lookup Table. This is the name that will appear in your destination platform.
  • Select Data Source — pick your Data Models Data Source from the drop-down.
  • Destination Schema — enter the name of the schema in your destination platform where the Lookup Table will be created.
  • Destination Warehouse — select your destination platform from the drop-down (for example, SQL Server, Snowflake, Databricks, Oracle, Fabric SQL).
Tip — Destination platform not in the list? Contact us at support@biconnector.com and we’ll help you out.

 

Step 3 — Add the tables to pipeline

In the Base Tables and BIC Tables field, add the tables you want to move to your destination platform. You can do this in any of the following ways:

  • Type a table name in the field and select it from the drop-down list that appears.
  • Paste a list of table names directly from Excel, or enter them as comma-separated values.
  • Check Show Only BIC Tables to filter the list to only the BI Connector tables you have set up under your Data Models Data Source, then select from those.
Want to remove a table? To remove a specific table, click the × next to its name. To remove all tables at once, click Remove All.

 

Step 4 — Load the Lookup Table

Click Next: Load Lookup Table. BI Connector will load the Lookup Table and pre-fill the details for each table, including the Watermark Column, Primary Key, Watermark Column Format, and Frequency in Hours where it can.

Review the pre-filled details and make any edits directly in the relevant cell:

  • TABLE_SRC — the source table name in Oracle Fusion.
  • SRC_TABLE_QUERY — the query BI Connector uses to fetch data from the source table.
  • TABLE_DEST — the table name as it will appear in the destination platform.
  • SCHEMA_DEST — the destination schema.
  • PRIMARY_KEY — the primary key column for the table. To use a combination of columns as the primary key, enter the column names separated by commas.
  • WATERMARK_COLUMN — the column used to track incremental changes (for example, LAST_UPDATE_DATE).
  • WATERMARK_COLUMN_FORMAT — the date/time format of the Watermark column (for example, YYYY-MM-DD HH24:MI:SS).
  • FREQUENCY_IN_HOURS — how often the pipeline refreshes this table, in hours.
Tip — For BIC Tables (BI Connector tables pointing to your Data Model Data Source), the fields will not be pre-filled — you must fill them in manually.

 

Step 5 — Save the Lookup Table

Once you have reviewed and completed all the details, click Save. A success message appears at the top right, and you are redirected to the Lookup Tables list where the newly created table appears.

 

Part A complete! Your Lookup Table is now created in BI Connector. Continue to Part B to load it into your destination platform.

 


 

Part B — Load the Lookup Table into your destination platform

The Lookup Table now needs to be created as an actual table in your destination platform so your Fabric or ADF/Synapse pipeline can refer to it when executing queries.

 

Step 6 — Download the Create and Insert statements

On the Lookup Tables list, click the (three dots) next to your Lookup Table, then hover over Download SQL. Two options appear:

  • Click Create Statement to download the SQL script that creates the Lookup Table structure in your destination platform.
  • Click Insert Statement to download the SQL script that inserts the Lookup Table rows into the table.

 

Step 7 — Execute the statements in your destination platform

Log in to your destination platform and execute the downloaded Create Statement first, followed by the Insert Statement. Once both are executed successfully, the Lookup Table is loaded in your destination platform and ready for your pipeline to use.

Important — Always run the Create Statement before the Insert Statement. Running the Insert Statement on a table that does not exist yet will cause an error.
Tip — Need to add more tables later? Open the corresponding Lookup Table in BI Connector and add the new tables. Then download the Insert Statement and execute it on your destination platform for only the newly added rows. No need to re-run the Create Statement.

 

What would you like to do next?

What's your goal?Go to
Create and run a pipeline in Microsoft FabricCreate a Gateway Connection in Fabric
Create and run a pipeline in ADF or Azure SynapseCreate a Linked Service in ADF/Synapse