JupyterLab Extension for INFACore

JupyterLab Extension for INFACore

Provision data

Provision data

You can configure both the read and write operations together using the provision data function.
Select the configured source and target connections for the data source and destination. Provide the data object names in the source and destination. Run the Python code to read from and write data. The provision data function simplifies the effort of configuring separate read and write operations and saves time.
Configure the provision data operation on the
Apply Functions
tab.
In this example, we use a Snowflake connection to read customer data from a Snowflake source and write to a flat file target.
  1. On the
    General
    tab, select
    Provision Data
    .
  2. Select the data source name and connection, and enter the data source object for the source. Similarly, enter the details for the destination to write the data.
  3. Click
    Submit.
    .
    The following code appears in the JupyterLab workspace. You can run the code to read from and write the data.
    read_data_object = ic.get_data_source("Snowflake").get_connection("SnowConn").get_data_object("CONDLT/CDI_DLTQA/CUSTOMER") df = read_data_object.read() write_data_object = ic.get_data_source("Flat File").get_connection("FFile").get_data_object("FF_TG.csv") write_option = { "create_target": True } write_data_object.write(df,write_option)

0 COMMENTS

We’d like to hear from you!