Skip to main content

Common Setup for Databases & Data Warehouses

info

This article provides general information about working with databases and data warehouses in Nexla.

  • Detailed instructions for creating a data source or destination using any of Nexla's database/data warehouse connectors are located in Section 2 & Section 3.

1. Databases/Data Warehouses & Nexla

Databases provide an efficient way to store, manage, and access large volumes of both structured and unstructured data. Data stored in databases is used in a wide variety of operational and transactional workflows, including retail order and inventory tracking, business decision-making, financial transaction tracking, and many others.

Data warehouses are also used to store and access large volumes of structured or unstructured data, but typically, this data is aggregated from multiple sources and includes both current and historical data. Data stored in data warehouses is used to support workflows such as in-depth data analytics, data mining, artificial intelligence, and machine learning.

Examples of databases and data warehouses include Google BigQuery, Snowflake, RedShift, MySQL, and Oracle Autonomous.

Nexla can connect to and ingest data from any database or data warehouse, allowing users to quickly and easily build data flows that ingest data from these sources, apply any needed transformations, and send the data to any destination. Data flows originating from databases and data warehouses can be constructed to suit any use case, and Nexla's comprehensive governance and troubleshooting tools allow users to monitor every aspect of the flow status, data lineage, and more.


2. Data Sources: Connecting to Databases/Data Warehouses

With Nexla's connectors, users can quickly and easily add any database or data warehouse as a data source to begin ingesting, transforming, and moving data in any format.

The sections below provide general instructions for and information about setting up a database/data warehouse source in each of Nexla's data flow types.

Data Flow Types

FlexFlow:
FlexFlow is a flexible all-in-one data flow type that can be used to create both streaming and real-time data flows that can be used to transform data and/or move data from any source to any destination. This flow type uses the Kafka engine to facilitate seamless high-throughput movement of data from any source to any destination. FlexFlow is the recommended flow type for most workflows.

DB-CDC:
DB-CDC data flows use change data capture to replicate tables across databases and/or cloud warehouses. This flow type is streamlined for use in data migration and maintenance workflows, allowing users to quickly create data flows that replicate data across storage locations.

Spark ETL: (** Databricks) Spark ETL data flows are designed for rapidly modifying large volumes of data stored in cloud databases or Databricks and moving the transformed data into another cloud storage or Databricks location. This flow type uses the Apache Spark engine and is ideal for large-scale data processing wherein minimizing latency in data movement is a critical need.

Replication:
Replication data flows are designed for use in workflows that require high-speed movement of unmodified files between storage systems. This flow type is ideal for use when both retaining file structure and transferring data as quickly as possible are critical.


2.1 FlexFlow Data Flows

  1. After logging into Nexla, navigate to the Integrate section by selecting Integrate.png from the platform menu on the left side of the screen.

  2. Click New Data Flow.png at the top of the Integrate toolbar on the left to open the Select Source Type screen.

NewDataFlow2.png
  1. Select FlexFlow from the list of flow types, and click CreateFT.png to proceed to data source creation.
Flex_Create.png
  1. Select the connector tile that matches the database/data warehouse from which data will be ingested in this flow. Then, click Next.png in the top right corner of the screen. Once a connector is selected, the platform will automatically advance to the next setup step.

    Connector Categories

    To view all of Nexla's currently available database/data warehouse connectors, select Databases from the Categories toolbar on the left side of the screen.

    SelectConnector.png
  1. In the Authenticate screen, follow the instructions below to create or select the credential that will be used to connect to the data source.

    To create a new credential:

    1. Select the Add Credential tile.

      AddCredential.png
    2. Enter and/or select the required information in the Add New Credential pop-up.

      AddCredential2.png
    3. Once all of the required information has been entered, click SaveCredential.png at the bottom of the pop-up to save the new credential, and proceed to Configure the Data Source.


    To use a previously added or shared credential:

    1. Select the credential from the list.

      SelectCred.png
    2. Click Next.png in the upper right corner of the screen, and proceed to Configure the Data Source.


Configure the Data Source

  1. In the Configure screen, enter a name for the data source in the Source Name or Name field.

  2. Optional: Enter a brief description of the data source in the Description field (if present).

    Resource Descriptions

    Resource descriptions should provide information about the resource purpose, data freshness, etc. that can help the owner and other users efficiently understand and utilize the resource.


  3. The subsections below provide information about additional settings available for database & data warehouse sources in FlexFlow data flows. Follow the listed instructions to configure each setting for this data source, and then proceed to Save & Activate the Data Source.

Source Table

In Nexla, database & data warehouse sources can be configured to ingest all data in a location accessible to the selected credential, only data in tables within a specific directory, or only data from a single table.

  • Under the Source Table section, navigate to the directory location from which Nexla should read data; then, hover over the listing, and click the Select.png icon to select this location.

    • To view/select a nested location, click the Expand.png icon next to a listed folder to expand it.
SelectLoc1.png
  • The selected directory location is displayed at the top of the Source Table section.
SelectLoc2.png
Data Selection (Full/Partial Data Loading)

When setting up a database/data warehouse source in a data flow, Nexla provides configuration options for specifying which data should be ingested from the source location, allowing users to customize data ingestion to suit various use cases. Partial data loading from the selected location can be configured using record IDs and/or timestamps using the table scan modes available under the Data Selection category.

▷   Full data loading from the selected location:

  • To configure Nexla to ingest all data from the selected database location, select Read the whole table from the Table Scan Mode menu.

    WholeTable.png

▷   Partial data loading according to a record ID:

  1. To configure Nexla to ingest data from the selected location by beginning at a specified record ID, select Start reading from a specific ID from the Table Scan Mode menu.
ID1.png
  1. Select the column containing the ID that will be used to execute partial data loading from the ID Column pulldown menu.

    ID Column

    The ID Column must be a numeric column.

ID2.png
  1. Enter the ID value from which Nexla should start ingesting data in the Starting ID field.

    Starting ID

    The Starting ID must be an value located in the ID Column selected in the previous step.

ID3.png

▷   Partial data loading according to a timestamp:

  1. To configure Nexla to ingest data from the selected location by beginning at a specified timestamp, select Start reading from a specific timestamp from the Table Scan Mode menu.
Timestamp1.png
  1. Select the column containing the timestamp that will be used to execute partial data loading from the Timestamp Column pulldown menu.

    Timestamp Column

    The Timestamp Column must be a datetime column.

Timestamp2.png
  1. Enter the timestamp value from which Nexla should start ingesting data in the Starting Timestamp field.

    Starting Timestamp

    The Starting Timestamp must be a UNIX epoch (milliseconds)- or ISO-formatted date valuee.g., 2016-01-01T12:13:14. This timestamp must also be a value located in the Timestamp Column selected in the previous step.

Timestamp3.png

▷   Partial data loading according to both a record ID & a timestamp:

  1. To configure Nexla to ingest data from the selected location by beginning at a specified ID & timestamp, select Start reading from a specific ID and timestamp from the Table Scan Mode menu.
ID_Timestamp1.png
  1. Select the column containing the ID that will be used to execute partial data loading from the ID Column pulldown menu.

    ID Column

    The ID Column must be a numeric column.

ID_Timestamp2.png
  1. Enter the ID value from which Nexla should start ingesting data in the Starting ID field.

    Starting ID

    The Starting ID must be an value located in the ID Column selected in the previous step.

ID_Timestamp3.png
  1. Select the column containing the timestamp that will be used to execute partial data loading from the Timestamp Column pulldown menu.

    Timestamp Column

    The Timestamp Column must be a datetime column.

ID_Timestamp4.png
  1. Enter the timestamp value from which Nexla should start ingesting data in the Starting Timestamp field.

    Starting Timestamp

    The Starting Timestamp must be a UNIX epoch (milliseconds)- or ISO-formatted date valuee.g., 2016-01-01T12:13:14. This timestamp must also be a value located in the Timestamp Column selected in the previous step.

ID_Timestamp5.png
Scheduling

Scan scheduling options can be used to define the freqency at which the selected location will be scanned for new data and/or changes in a data flow. Any new data/changes identified during a scan will then be ingested into the flow.

  • By default, when a new data flow is created, Nexla is configured to scan the source for data changes once every day. To continue with this setting, no further selections are required. Proceed to Save & Activate the Data Source.

  • To define how often Nexla should scan the data source for new data changes, select an option from the Fetch Data pulldown menu under the Scheduling section.

    • When options such as Every N Days or Every N Hours, a secondary pulldown menu will be populated. Select the appropriate value of N from this menu.
FetchData.png
  • To specify the time at which Nexla should scan the source for new data changes, use the pulldown menu(s) to the right of the Fetch Data menu. These time menus vary according to the selected scan frequency.
Time.png

Save & Activate the Data Source

Once all required settings and any desired additional options are configured, click Continue.png in the top right corner of the screen to save & activate the data source.

Continue2.png

Once the data source is created, Nexla will automatically scan it for data according to the configured settings. Identified data will be organized into a Nexset, which is a logical data product that is immediately ready to be sent to a destination.

SourceCreated.png

2.2 DB-CDC Data Flows

  1. After logging into Nexla, navigate to the Integrate section by selecting IntegrateIcon.png from the platform menu on the left side of the screen.

  2. Click NewDataFlow.png at the top of the Integrate toolbar on the left.

NewDataFlow2.png
  1. Select DB-CDC from the list of flow types, and click CreateFT.png to proceed to data source creation.
CDC_Create.png
  1. In the Connect screen, select the connector tile matching the data source type from the list.
    Supported Connectors

    DB-CDC data flows are only supported for some of the connectors available in Nexla, and only supported connectors are shown on this screen.

SelectConnector.png
  1. In the Authenticate screen, follow the instructions below to create or select the credential that will be used to connect to the data source.

    Important: Credential Permissions

    The credentials used to create the data source in a DB-CDC flow must have permission to read transaction logs from the source location. More information can be found in DB-CDC Data Flows.

    To create a new credential:

    1. Select the Add Credential tile.

      AddCredential.png
    2. Enter and/or select the required information in the Add New Credential pop-up.

      AddCredential2.png
    3. Once all of the required information has been entered, click SaveCredential.png at the bottom of the pop-up to save the new credential, and proceed to Configure the Data Source.


    To use a previously added or shared credential:

    1. Select the credential from the list.

      SelectCred.png
    2. Click Next.png in the upper right corner of the screen, and proceed to Configure the Data Source.


Configure the Data Source

  1. Enter a name for the data source in the Source Name field.
SourceName.png
  1. The subsections below provide information about additional settings available for data sources in DB-CDC flows. Follow the listed instructions to configure each setting for this data source, and then proceed to Save & Activate the Data Source.

Data Selection

With DB-CDC flows in Nexla, users can define which data from the source location will be reflected into the destination. Source data in these flows can be configured to include the entire database associated with the data source credential or to include or exclude specified tables.

▷   Include all data in the source location:

  1. Select the Automatic schema selection mode. When this mode is used, all data accessible to the credential used to create the data source will be reflected into the destination.

    Example: All tables in the nexla_metrics_prod database will be included
    in the DB-CDC flow

    Automatic.png

▷   Exclude some tables in the source location:

  1. Select the Select by name schema selection mode, and ensure that the Exclude tables option is selected.

    Exclude.png
  2. Click the Expand.png icon next to the database name to expand the list of tables, and check the box(es) next to the table(s) that should be excluded from this DB-CDC flow.

    Example: Data in the connector_state and custom_flow_hourly tables will be
    excluded from the DB-CDC flow

    Exclude2.png

▷   Include only some tables in the source location:

  1. Select the Select by name schema selection mode, and select the Include tables option.

    Include.png
  2. Click the Expand.png icon next to the database name to expand the list of tables, and check the box(es) next to the table(s) that should be included in this DB-CDC flow.

    Example: Only data & detected changes in the account_metrics_daily table will be
    included in the DB-CDC flow

    Include2.png
Existing Data

Some use cases require capturing pre-existing data in the source location and reflecting it into the destination, while others need to reflect only newly added data. Nexla can easily be configured for either workflow with a single setting.

▷   To ingest and reflect only data that is added to the source location after the DB-CDC flow is created:

  • Ensure that the Ingest existing data switch is in the off position (gray). This is the default setting, so typically, no change is needed.

    ExistingData1.png

▷   To ingest and reflect all data currently existing in the source location along with newly added data in this DB-CDC flow:

  • Activate the Ingest existing data setting by clicking on the slide switch. Once activated, the switch will turn blue.

    ExistingData2.png
Change Capture Settings

In a DB-CDC data flow, Nexla will always capture and reflect data that is newly created in the source location. However, users can choose whether or not data deletions in the source location will also be reflected into the destination.

▷   To only reflect newly created data into the destination, without synching any data deltions, in this DB-CDC flow:

  • In the Capture change events settings, ensure that the Delete switch is in the off position (gray). This is the default setting, so typically, no change is needed.

    Deletions1.png

▷   To reflect data deletions in addition to newly created data into the destination in this DB-CDC flow:

  • In the Capture change events settings, activate the Delete setting by clicking on the slide switch. Once activated, the switch will turn blue.

    Deletions2.png
Scheduling

Scan scheduling options can be used to define the freqency at which the data source will be scanned for data changes in a DB-CDC flow. Any data changes identified during a scan will then be replicated into the configured destination.

  • By default, when a new DB-CDC data flow is created, Nexla is configured to scan the source for data changes once every day. To continue with this setting, no further selections are required. Proceed to Save & Activate the Data Source.

  • To define how often Nexla should scan the data source for new data changes, select an option from the Replication Frequency pulldown menu.

    • When options such as Every N Days or Every N Hours, a secondary pulldown menu will be populated. Select the appropriate value of N from this menu.
RepFrequency.png
  • To specify the time at which Nexla should scan the source for new data changes, check the box next to Set Time. Enabling this option will populate new pulldown menus that can be used to define the scan time.

    • The scan time menus populated when Set Time is enabled vary according to the selected Replication Frequency.

Step 1:

SetTime1.png

Step 2:

SetTime2.png

Save & Activate the Data Source

Once all required settings and any desired additional options are configured, click Continue.png in the top right corner of the screen to save & activate the data source.

Continue2.png

Once the data source is created, Nexla will automatically scan it for data according to the configured settings. Identified data will be organized into a Nexset, which is a logical data product that is immediately ready to be sent to a destination.

New DB-CDC Data Flow with Data Source & Detected Nexset

Flow1.png

2.3 Spark ETL Data Flows

  1. After logging into Nexla, navigate to the Integrate section by selecting IntegrateIcon.png from the platform menu on the left side of the screen.

  2. Click NewDataFlow.png at the top of the Integrate toolbar on the left.

NewDataFlow2.png
  1. Select Spark ETL from the list of flow types, and click CreateFT.png to proceed to data source creation.
SparkETL_Create.png
  1. In the Connect screen, select the connector tile matching the data source type from the list.

    Supported Connectors

    Spark ETL data flows are only supported for some of the connectors available in Nexla, and only supported connectors are shown on this screen.

SelectConnector.png
  1. In the Authenticate screen, follow the instructions below to create or select the credential that will be used to connect to the data source.

    To create a new credential:

    1. Select the Add Credential tile.

      AddCredential.png
    2. Enter and/or select the required information in the Add New Credential pop-up.

      AddCredential2.png
    3. Once all of the required information has been entered, click SaveCredential.png at the bottom of the pop-up to save the new credential, and proceed to Configure the Data Source.


    To use a previously added or shared credential:

    1. Select the credential from the list.

      SelectCred.png
    2. Click Next.png in the upper right corner of the screen, and proceed to Configure the Data Source.


Configure the Data Source

  1. Enter a name for the data source in the Name field.
SourceName.png
  1. Optional: Enter a brief description of the data source in the Description field.

    Resource Descriptions

    Resource descriptions should provide information about the resource purpose, data freshness, etc. that can help the owner and other users efficiently understand and utilize the resource.

SourceDesc.png
  1. The subsections below provide information about additional settings available for data sources in Spark ETL flows. Follow the listed instructions to configure each setting for this data source, and then proceed to Save & Activate the Data Source.

Source Table

In Spark ETL flows, data sources can be configured to ingest all files in the database/Databricks location accessible with the selected credential or only files within a specific folder.

  • Under the Source Table section, navigate to the directory location from which Nexla will read files from this source; then, hover over the listing, and click the Select.png icon to select this location.

    • To view/select a nested location, click the Expand.png icon next to a listed folder to expand it.
SelectLoc1.png
  • The selected directory location is displayed at the top of the Source Table section.
SelectLoc2.png
Cloud Credential
  1. Select the type of cloud credential that will be used to connect to the selected data source location from the Cloud Credential Type pulldown menu.
CloudCred.png
  1. Add or select the cloud credential that will be used.
  • To add a new cloud credential:

    1. Select the Add Credential icon.

      CloudCred2.png
    2. In the Add New Credential window, enter the required information, and click SaveCred.png.

      CloudCred3.png
  • To use an existing cloud credential, select the credential from the list.

    CloudCred4.png
Apache Hive
  • To treat all subdirectiries detected within the chosen data source location as Apache Hive partitions, check the box next to Treat all subdirectories as Apache Hive partitions.

    Apache.png
Data Format
Automatic File Format Detection

By default, Nexla automatically detects the format of files ingested from data sources and parses the data contained in the files accordingly. Automatic file format detection is recommended for most workflows, including when the source contains files in more than one format.

For more information about Nexla's automatic file format detection, see the Automatic File Format Detection section in Supported File Formats.


For specialized use cases, users can designate a specific incoming file format for a data source in a Spark ETL flow, forcing Nexla to parse all files ingested from the source according to the designated file format.

  • To specify the format that will be used to parse files from this source, select the appropriate format from the File Content Format pulldown menu under the Data Format section.

    FileFormat.png
  • Some file formats require additional information, such as delimiter, schema, metadata, and relevant data settings. For instructions on completing these settings, follow the corresponding link below:

Custom Text Files
Compressed ZIP and/or TAR Files
EDI Files
Excel Files
Fixed-Width Files
JSON Files
Log Files
PDF Files
XML Files


Data Selection

When setting up the data source in a Spark ETL flow, Nexla provides configuration options for specifying which data should be ingested from the source, allowing users to customize data ingestion to suit various use cases. Data can be selected for ingestion from file-based storage systems according to file modification dates, naming patterns, and/or subfolder paths.

The settings discussed in this section are located under the Data Selection category.

▷   To ingest all files in the selected location:

  • To configure Nexla to ingest all files from the data source, regardless of when the files were added or modified, delete the pre-populated date and time from the Only read files modified after: field, and leave this field blank.

    Blank_AllFiles.png

▷   To ingest files according to the most recent modification date:

  1. When Nexla should only ingest newer or recently modified files from the data source, the platform can be configured to selectively ingest files modified after a specified date and time. To specify the file modification date and time that will be used to select which files should be read from this source, click the Calendar.png icon in the Only read files modified after: field under, and select the date from the dropdown calendar.
ModifiedAfter1.png
  1. In the field at the bottom of the calendar, enter the time (in 24-h format) on the selected date that should be referenced when identifying new and/or modified files from the source.
Time.png
Scheduling

Scan scheduling options can be used to define the freqency at which the data source will be scanned for data changes in a Spark ETL flow. Any data changes identified during a scan will then be replicated into the configured destination.

  • By default, when a new Spark ETL data flow is created, Nexla is configured to scan the source for data changes once every day. To continue with this setting, no further selections are required. Proceed to Save & Activate the Data Source.

  • To define how often Nexla should scan the data source for new data changes, select an option from the Check for Files pulldown menu under the Scheduling section.

    • When options such as Every N Days or Every N Hours, a secondary pulldown menu will be populated. Select the appropriate value of N from this menu.
CheckForFiles.png
  • To specify the time at which Nexla should scan the source for new data changes, use the pulldown menu(s) to the right of the Check For Files menu. These time menus vary according to the selected scan frequency.
Time.png

Save & Activate the Data Source

Once all required settings and any desired additional options are configured, click Continue.png in the top right corner of the screen to save & activate the data source.

Continue2.png

Once the data source is created, Nexla will automatically scan it for data according to the configured settings. Identified data will be organized into a Nexset, which is a logical data product that is immediately ready to be sent to a destination.

New Spark ETL Data Flow with Data Source & Detected Nexset

Flow1.png

2.4 Replication Data Flows

  1. After logging into Nexla, navigate to the Integrate section by selecting IntegrateIcon.png from the platform menu on the left side of the screen.

  2. Click NewDataFlow.png at the top of the Integrate toolbar on the left.

NewDataFlow2.png
  1. Select Replication from the list of flow types, and click CreateFT.png to proceed to data source creation.
Rep_Create.png
  1. In the Connect screen, select the connector tile matching the data source type from the list.

    Supported Connectors

    Replication data flows are only supported for some of the connectors available in Nexla, and only supported connectors are shown on this screen.

SelectConnector.png
  1. In the Authenticate screen, follow the instructions below to create or select the credential that will be used to connect to the data source.

    To create a new credential:

    1. Select the Add Credential tile.

      AddCredential.png
    2. Enter and/or select the required information in the Add New Credential pop-up.

      AddCredential2.png
    3. Once all of the required information has been entered, click SaveCredential.png at the bottom of the pop-up to save the new credential, and proceed to Configure the Data Source.


    To use a previously added or shared credential:

    1. Select the credential from the list.

      SelectCred.png
    2. Click Next.png in the upper right corner of the screen, and proceed to Configure the Data Source.


Configure the Data Source

  1. Enter a name for the data source in the Name field.
SourceName.png
  1. The subsections below provide information about additional settings available for data sources in Replication flows. Follow the listed instructions to configure each setting for this data source, and then proceed to Save & Activate the Data Source.

Source Directory

Replication flows can be used to clone an entire directory that is accessible with the selected credential or individual tables within the directory into the destination location.

  • Under the Source Directory section, navigate to the directory location from which Nexla will read files from this source; then, hover over the listing, and click the Select.png icon to select this location.

    • To view/select a nested location, click the Expand.png icon next to a listed folder to expand it.
SourceDir.png
  • The selected directory location is displayed at the top of the Source Directory section.
SourceDir2.png
Scheduling

Scan scheduling options can be used to define the freqency at which the source location will be scanned for new or modified data in a Replication flow. Any new or modified data identified during a scan will then be replicated into the configured destination.

  • By default, when a new Replication data flow is created, Nexla is configured to scan the source for data changes once every day. To continue with this setting, no further selections are required. Proceed to Save & Activate the Data Source.

  • To define how often Nexla should scan the data source for new data changes, select an option from the Fetch Data pulldown menu under the Scheduling section.

    • When options such as Every N Days or Every N Hours, a secondary pulldown menu will be populated. Select the appropriate value of N from this menu.
CheckForFiles.png
  • To specify the time at which Nexla should scan the source for new data changes, use the pulldown menu(s) to the right of the Fetch Data menu. These time menus vary according to the selected scan frequency.
Time.png

Save & Activate the Data Source

Once all required settings and any desired additional options are configured, click Continue.png in the top right corner of the screen to save & activate the data source.

Continue2.png

Once the data source is created, Nexla will automatically scan it for data according to the configured settings. Identified data will be organized into a Nexset, which is a logical data product that is immediately ready to be sent to a destination.

New Replication Data Flow with Data Source & Detected Nexset

RepFlow2.png

2.5 How Nexla Organizes Data

When Nexla ingests data from a source, the platform intelligently analyzes the structure of the data to organize it into one or more Nexsets.

If a location containing multiple tables is selected when configuring a data source from a database/data warehouse, Nexla will examine the differences between the ingested tables. The platform will then create Nexsets containing the ingested data based on the level of overlap between records and options selected during data source creation.

After the initial data ingestion cycle, Nexla will repeat the process of comparing the structure and composition of newly ingested data to any existing Nexsets during subsequent cycles. Similar data will be added to existing Nexsets, while significantly different data will be organized into a new Nexset.


2.6 Ingestion of Newly Added or Modified Data

Once a data source has been created in Nexla, whether from a database/data warehouse or any other type of service, the platform will scan the source at regular intervals according to the configured scheduling options. When Nexla detects new data during a scan, it will automatically ingest and process the new data.

Nexla also tracks the number of rows of data that have been ingested from each table. Therefore, when additional rows of data are added to a previously ingested table, the platform will automatically ingest and process the added data.

Important Note: Data Ingestion

Nexla reads and processes data from a source according to the configured schedule, but the platform will wait for a period of inactivity at the source before executing a scan.



3. Destinations: Sending Data to Databases/Data Warehouses

Nexla's bi-directional connectors allow data to flow both to and from any location, making it simple to set up up a data flow that sends data to a database or data warehouse.

Follow the instructions below to create a database/data warehouse destination in any data flow.


  1. Locate the Nexset that will be sent to the database destination, and click the Send.png icon on the Nexset.

    Viewing Accessible Nexsets

    To view all accessible Nexsets within their associated data flows:

    Navigate to the Integrate section, and select All Data Flows from the menu on the left. Then, click on any listed data flow to view all detected and transformed Nexsets that it contains.

    To view a list of all Nexsets accessible to the Nexla user account:

    Navigate to the Integrate section, and select Nexsets from the menu on the left to open the Nexsets screen.

SendNexset.png
  1. In the Connect screen, select the connector tile matching the data destination type from the list.

    SelectDest.png
  2. Add or select the credential that should be used to connect to the destination by following the instructions shown in Section 2.1, Step 5 above. Then, click Next.png in the upper right corner of the screen. , and proceed to Configure the Data Source.

  3. Each of Nexla's flow types includes destination configuration options that are specific to the flow type. Click the link corresponding to your flow type in the list below to learn how to configure the destination and complete the destination setup process.

3.1 FlexFlow Data Flows

  1. Enter a name for the destination in the Name field.
Flex1.png
  1. Optional: Enter a brief description of the destination in the Description field.

    Resource Descriptions

    Resource descriptions should provide information about the resource purpose, data freshness, etc. that can help the owner and other users efficiently understand and utilize the resource.

Flex2.png

Configure the Destination

  • FlexFlow data flows can be used to send the Nexset data to an existing database table, or users can create and send the data to a new table in the database. Instructions for configuring each of these options are provided below.
Send Data to an Existing Table
  1. Under the Destination Table settings category, locate the database table to which Nexla should send the data. Expand databases and tables as necessary by clicking the Expand.png icon next to a directory location.

  2. Select the table to which the data will be sent by hovering over it and clicking the Select.png icon.

    Select2.png
  3. Continue to the Update Mode settings.


Create a New Table
  1. Locate the database table to which Nexla should send the data. Expand databases and tables as necessary by clicking the Expand.png icon next to a directory location.

  2. Click CreateNewTable.png below the database in which a new table should be created.

    Creating New Tables

    To create and send the data to a new table, the credential used to connect to the destination must have permissions to create tables in the database. If these permissions are removed after the data flow is created, all database updates associated with the flow will be stopped, and the user will receive a notification in Nexla.


  3. Under the Format Table settings category, enter a name for the new table in the Table Name field.

SeleTableNamect2.png
  1. Continue to the Update Mode settings.

Update Mode

Nexla can be configured to insert or upsert the Nexset data into the database table.

  • Insert When this update mode is selected, the Nexset record attributes will be inserted into the destination table as new columns.

  • Upsert When this update mode is selected, the values in each Nexset record attribute corresponding to an existing column in the destination table will be used to update that column, and any record attributes that do not correspond to an existing column will be inserted as new columns.

▷   To use the Insert update mode:

  1. Under the Update Mode settings category, select Insert from the pulldown menu.
Insert1.png
  1. When using Insert mode, Nexla can be configured to automatically map the Nexset attributes to existing columns in the destination table. To use this option, check the box next to Automatically map attributes to database columns; or, to manually map the Nexset attributes to table columns, uncheck this box to disable automatic mapping.
AutoMap.png
  • When automatic column mapping is enabled, the schema of the selected destination table is shown under the Format Table settings category. Linked attributes, column names, and data types cannot be changed as described in the Column Mapping section below; instead, edit or transform the Nexset to make any needed changes.

    Schema.png
  1. Continue to the Column Mapping settings.

▷   To use the Upsert update mode:

  1. Under the Update Mode settings category, select Upsert from the pulldown menu.
Upsert.png
  1. By default, Nexla is configured to allow destination table columns to be updated with null values when using Upsert mode. To omit null Nexset record attribute values from the upsert and allow the Nexset records to be partially upserted, disable this option by unchecking the box next to Allow column updates with nulls.
Nulls.png
  1. Under the Format Table settings category, select the attribute that will be used as the primary key by checking the box under Primary to the right of that attribute.
PrimaryKey.png
  1. Continue to the Column Mapping settings.

Column Mapping

The Nexset attributes are mapped to columns in the destination table under the Format Table settings category.

▷   Existing Table:

When sending data to an existing table, Nexla will automatically provide a draft column map with Nexset attributes linked to matching destination table columns. Linked draft attributes can be changed and/or selected using the pulldown menus.

Map1.png

▷   New Table:

When the destination is a new table, the draft column map will be populated with suggested column names and data types. Suggested column names can be edited directly in the field, and data types can be changed using the pulldown menu.

Map2.png
Table Partitioning

For partitioned database tables, select the column containing the partitioning value by checking the box to the right of the column under Partitioning Column

Partitioning.png
Clustering

For partitioned database tables that use clustering, select the column(s) containing the values used to determine clustering by checking the box(es) to the right of the column(s) under Clustering Columns.

Clustering.png
Record Lineage Tracking

Nexla provides the option to trace the lineage of records sent to the database table. This lineage includes the origin of the record data, all applied transformations or changes, and all destinations to which the record data has been sent over time.

  1. To enable record lineage tracking, click on the Track Lineage slide switch. Once activated, the switch will turn blue.
FlexFlowTRL1.png
  1. Enter the tracker name in the Track Lineage text field. Nexla will include an attribute with the name entered in this field. This attribute will be assigned a unique value for each record written to the destination.
FlexFlowTRL2.png

Save & Activate the Destination

  1. Once all required settings and any desired additional options are configured, click Done.png in the top right corner of the screen to save the data destination.

    Important: Data Movement

    Data will not begin to flow into the destination until it is activated in the following step.

DestCreated.png
  1. To activate the destination, click the Edit.png icon on the destination, and select Activate.png from the dropdown menu.
Activate2.png

3.2 DB-CDC Data Flows

Configure the Destination

  1. Enter a name for the destination in the Destination Name field.
DestName.png
Namespace

In a DB-DCD data flow, users can designate the destination namespace to which data will be sent.

  • By default, Nexla will send the data to the namespace with a title matching the destination name entered in Step 3 above; or, if no matching namespace title exists in the destination, Nexla will create a new namespace with the entered title. To use this default setting, no further action is required.

  • To specify the namespace to which data will be sent in this flow, enter the namespace title in the Destination Namespace field.

    Namespace.png
Destination Table

Nexla can be configured to include a prefix and/or suffix in the title of any tables created in the destination of a DB-CDC data flow.

▷   To include a prefix in the title of created tables:

  • Enter the prefix that will be included for each table in the Destination Table Prefix field.

    TablePrefix.png

▷   To include a suffix in the title of created tables:

  • Enter the suffix that will be included for each table in the Destination Table Suffix field.

    TableSuffix.png
Change Capture Settings

In a DB-CDC data flow, Nexla will always capture data that is newly created in the source location and replicate that data into the destination location. However, users can choose whether or not data deletions in the source location will also be reflected into the destination.

▷   To only reflect newly created data into the destination, without synching any data deltions, in this DB-CDC flow:

  • In the Capture change events settings, ensure that the Delete switch is in the off position (gray). This is the default setting, so typically, no change is needed.

    Deletions3.png

▷   To reflect data deletions in addition to newly created data into the destination in this DB-CDC flow:

  • In the Capture change events settings, activate the Delete setting by clicking on the slide switch. Once activated, the switch will turn blue.

    Deletions4.png
Record Lineage Tracking

Nexla provides the option to trace the lineage of records sent to the destination in DB-CDC data flows. This lineage includes the origin of the record data, all applied transformations or changes, and all destinations to which the record data has been sent over time.

  1. To enable record lineage tracking, click on the Track Lineage slide switch. Once activated, the switch will turn blue.

    Lineage1.png
  2. Enter the tracker name in the Track Lineage text field. Nexla will include an attribute with the name entered in this field. This attribute will be assigned a unique value for each record written to the destination.

    Lineage2.png
Stream Selection

Nexla can be configured to replicate all data & changes detected in the data source into the destination location, or users can specify only selected data to be replicated into the destination.

▷   Replicate all detected data & changes into the destination:

  • Under the Streams tab at the bottom of the screen, ensure that the Automatic option is selected. This setting is selected by default, so typically, no change is needed.

    Example: All tables in the nexla_metrics_prod database will be replicated
    into the DB-CDC flow destination

    Automatic2.png

▷   Replicate only data & changes detected in selected locations into the destination:

  1. Under the Streams tab at the bottom of the screen, select the Customize option, and deactivate the Sync All slide switch.

    StreamSelection1.png
  2. Click the Expand.png icon next to the database name to expand the list of tables, and check the box(es) next to the table(s) that should be synched to the destination this DB-CDC flow.

    Example: Only data & detected changes in the account_metrics_daily and data_monitor_daily tables
    will be replicated into the DB-CDC flow destination

    StreamSelection2.png

Save & Activate the Destination

  1. Once all required settings and any desired additional options are configured, click Done.png in the top right corner of the screen to save the data destination.

    Important: Data Movement

    Data will not begin to flow into the destination until it is activated by following the instructions below.

Done2.png
  1. To activate the destination, click the Edit.png icon on the destination, and select Activate.png from the dropdown menu.
Activate2.png

3.3 Spark ETL Data Flows

  1. Enter a name for the destination in the Name field.
DestName.png
  1. Optional: Enter a brief description of the destination in the Description field.

    Resource Descriptions

    Resource descriptions should provide information about the resource purpose, data freshness, etc. that can help the owner and other users efficiently understand and utilize the resource.

DestDesc.png

Configure the Destination

Destination Table
  • Under the Destination Table section, navigate to the table to which Nexla will write the Nexset data; then, hover over the listing, and click the Select.png icon to select this location.

    • To view/select a nested location, click the Expand.png icon next to a listed folder to expand it.
SelectTable.png
  • The selected directory location is displayed at the top of the Destination Table section.
SelectTable2.png
Update Mode
  1. Under Update Mode, select whether the records contained in the Nexset should be inserted or upserted into the table using the Update Mode pulldown menu.
UpdateMode.png
Record Lineage Tracking

Nexla provides the option to trace the lineage of records sent to the destination in Spark ETL data flows. This lineage includes the origin of the record data, all applied transformations or changes, and all destinations to which the record data has been sent over time.

  1. To enable record lineage tracking, click on the Track Lineage slide switch under Update Mode. Once activated, the switch will turn blue.

    Lineage1.png
  2. Enter the tracker name in the Track Lineage text field. Nexla will include an attribute with the name entered in this field. This attribute will be assigned a unique value for each record written to the destination.

    Lineage2.png
Automatic Mapping
  • To configure Nexla to automatically map the Nexset record attributes to columns in the database, check the box next to Automatically map attributes to database columns.
Mapping.png

Save & Activate the Destination

  1. Once all required settings and any desired additional options are configured, click Done.png in the top right corner of the screen to save the data destination.

    Important: Data Movement

    Data will not begin to flow into the destination until it is activated by following the instructions below.

Done2.png
  1. To activate the destination, click the Edit.png icon on the destination, and select Activate.png from the dropdown menu.
Activate3.png

3.4 Replication Data Flows

  1. Enter a name for the destination in the Name field.
DestName.png
  1. Optional: Enter a brief description of the destination in the Description field.

    Resource Descriptions

    Resource descriptions should provide information about the resource purpose, data freshness, etc. that can help the owner and other users efficiently understand and utilize the resource.

DestDesc.png

Configure the Destination

Destination Directory
  • Under the Destination Directory section, navigate to the directory location into which Nexla will replicate the Nexset data; then, hover over the listing, and click the Select.png icon to select this location.

    • To view/select a nested location, click the Expand.png icon next to a listed folder to expand it.
DestDirectory.png
  • The selected directory location is displayed at the top of the Destination Directory section.
DestDirectory2.png

Save & Activate the Destination

  1. Once all required settings and any desired additional options are configured, click Done.png in the top right corner of the screen to save the data destination.

    Important: Data Movement

    Data will not begin to flow into the destination until it is activated by following the instructions below.

Done2.png
  1. To activate the destination, click the Edit.png icon on the destination, and select Activate.png from the dropdown menu.
Activate2.png