Ingest Files Into SAP HANA (Incremental Load)

With an incremental load, the SAP Data Intelligence Modeler application loads data continuously to an SAP HANA table from CSV or JSON files that are in cloud storage. The graph processes all existing files first, and then monitors the directory to load new or modified files.

The SAP HANA incremental load graph flows as follows:
  • Monitor files: The application monitors the configured path for new and modified files that match the products.*\.csv regular expression. When the graph starts, the application lists all files once because the “Already exists” event is also enabled.

  • Reads file: The operator receives any files that haven't been processed, reads the file contents, and sends the content to the SAP HANA client.

  • Loads content: The SAP HANA client loads the CSV or JSON content into the configured table, based on the table initialization configuration. If the table doesn't exist, the application creates a new table.

Prerequisites

Before you run the graph, ensure that you've configured the following:
  • A connection to one of the supported cloud storages.

  • A running SAP HANA database with a matching registered connection.

Optional Configuration

Configure the multiplicity of the graph group. Multiplicity controls the number of parallel instances in which the application reads files and loads the data into SAP HANA. For more information about multiplicity, see Partitioning.

Configure and Run the Graph

  1. In the Modeler application, open the scenario template com.sap.scenarioTemplates.datalakeToDatabase.ingestToHana (Ingest Files into HANA).

  2. Complete the HANA_CONNECTION value with the respective connection ID for SAP HANA.

  3. Run the graph.

  4. Optional. To see the produced data, connect to SAP HANA and browse the table DEMO_STDL2DBHANAINGEST_PRODUCTS under the schema you configured.

For more information about running the scenario template, see Loading Data from Data Lake to Database (SAP HANA).