Documentation / Product / Integrations / Snowflake

Snowflake: Import Data

Import data from a Snowflake table or view into Lytics, resulting in new user profiles or updates to fields on existing profiles.

Integration Details

This integration ingests data from your Snowflake account by directly querying the table or view selected during configuration. Once started, the job will:

  1. Run a query to select and order the rows that have yet to be imported. If the import is continuous, the job will save the timestamp of the last row seen, only the most recent data will be imported during future importa.

  2. Once the query completes, the result set will be imported in batches, starting from the oldest row.

  3. Once the last row is imported, if the job is configured to run continuously, it will sleep until the next run. The time between runs can be selected during configuration.

Fields

Fields imported through Snowflake will require custom data mapping. For assistance mapping your custom data to Lytics user fields, please contact Lytics Support.

Configuration

Follow these steps to set up and configure an import of Snowflake data in the Lytics platform. If you are new to creating jobs in Lytics, see the Jobs Dashboard documentation for more information.

  1. Select Snowflake from the list of providers.
  2. Select the Import Audiences and Activity Data job type from the list.
  3. Select the Authorization you would like to use or create a new one.
  4. Enter a Label to identify this job you are creating in Lytics.
  5. (Optional) Enter a Description for further context on your job.
  6. Complete the configuration steps for your job. snowflake config-0321
  7. Using the Source Type dropdown menu, select whether to import from a Snowflake table or view.
  8. Using the Source dropdown menu, select the table or view you want to import.
  9. In the Modified Timestamp Field text input, enter the name of the field containing the event timestamp. On continuous imports, the most recent time in this field will be saved. On the next import, only rows with a timestamp later than that value will be imported.
  10. Enter name of the Lytics Stream where the data will be imported.
  11. (optional) Select the Keep Updated checkbox to import table or view continuously.
  12. (optional) From the Frequency input, select the frequency at which to run the import.
  13. (Optional) Toggle Show Advanced Options.
  14. (optional) From the Event Timestamp Field input, select enter a timestamp field to use as the event timestamp in Lytics. If none is entered, Modified Timestamp Field will be used.
  15. (optional) In the Events Since text box, enter enter the earliest date from which to import events. Only events that occurred after this date will be imported. RFC3339 formatted (i.e. YYYY-MM-DDThh:mm:ss+00:00).
  16. Click the Start Import button.