Let’s Get Certified
Module 12 / 20 · Data loading, unloading, and connectivity

Choose an ingestion path with Snowflake Openflow

Choose a connector runtime, file or row ingestion path and verify how the destination handles retries.

Choose an ingestion path with Snowflake Openflow

Work through the decision

A business system exposes changes through a supported Openflow connector. Another producer drops an hourly file. A third team wants a derived balance table refreshed within a target lag. Which part of the design should each service own?

Check your reasoning

Use Openflow to connect the supported business system and move or transform data through a flow. Confirm source access, destination privileges, runtime reachability and connector-specific delivery behavior. Use Snowpipe for arriving staged files. Define a dynamic table for the derived balance when the query and refresh strategy support the requirement.

Watch the source lesson at 2:02:41

Compare the choices

Snowflake Openflow
Use a supported connector and flow runtime for integration with an external source or destination. Check deployment and connector requirements separately.
Snowpipe
Load arriving staged files through a pipe using supported notification or submission mechanisms.
Snowpipe Streaming
Send rows through a supported streaming interface without staging each batch as files.
Stream
Expose changes relative to a tracked offset on a supported source. Transactional consumption determines offset advancement.
Task
Run SQL or procedures on a defined schedule or supported trigger and structure dependent steps into a graph.
Dynamic table
Declare the desired result with SQL and a target lag, and let Snowflake manage supported refreshes.

Test the decision

Openflow is built on Apache NiFi. Snowflake-hosted deployments run in Snowflake’s managed environment. Bring Your Own Cloud deployments use supported customer infrastructure and have different prerequisites. For a database change feed, verify snapshot boundaries, source position and behavior on replay. The lab models downstream reconciliation using these concepts.

Trace an Openflow deployment

Start with a source that has a supported connector and identify the initial snapshot and continuing changes it delivers. Choose a deployment model supported for the connector and cloud. Check network reachability from the runtime, authenticate the source and grant the destination identity only its required writes. Reconcile a small set of source keys with their destination rows before scheduling the full feed.

To verify recovery, pause a test feed after one update, restart it from its documented position and compare inserts, updates and deletes. Inspect runtime and component status, errors and back pressure. Retain the source positions and affected keys with the acceptance record. Connector semantics determine which duplicates or ordering differences the destination must handle.

Openflow in the full recording at 2:07:02 · Current Snowflake Openflow availability

The July guide lists Openflow under automated ingestion, conditional on global general availability. Snowflake documents general availability for commercial AWS, Azure and Google Cloud accounts. Include Openflow in exam preparation and verify connector-specific deployment support in the product documentation.

Practice the guide skills

  1. Trace a staged file from arrival event to Snowpipe load history. Watch 2:02:41
  2. Choose Snowpipe Streaming for a compatible producer sending rows through channels. Watch 2:06:24
  3. Design a Snowflake Openflow connection from a supported source through a runtime to a governed destination. Verify permissions, source position and replay behavior. Watch 2:07:02
  4. Describe a dynamic table's defining query, refresh compute and target lag. Watch 2:12:51
  5. Use a stream to select table changes for downstream transactional consumption. Watch 2:09:19
  6. Choose a scheduled or triggered task for a MERGE and inspect its execution history. Watch 2:11:33

Official objectives for this lesson

Lab · Reconcile an Openflow change feed

An Openflow connector has delivered these fictional change events to a landing area. This Python exercise models the destination reconciliation step. The source contract supplies a strictly increasing version per key and a delete operation. Predict the outcome of replaying the delivery.

batch = [
    ("K1", 1, "upsert", 12), ("K2", 1, "upsert", 7),
    ("K1", 2, "upsert", 15), ("K2", 3, "delete", None),
    ("K2", 2, "upsert", 8),
]
versions = {}
balances = {}
for delivery in ("first", "replay"):
    applied = 0
    for key, version, operation, value in batch:
        if version <= versions.get(key, 0):
            continue
        if operation == "delete":
            balances.pop(key, None)
        else:
            balances[key] = value
        versions[key] = version
        applied += 1
    print(delivery, "applied", applied, "balances", sorted(balances.items()))
Check the result
first applied 4 balances [('K1', 15)]
replay applied 0 balances [('K1', 15)]

K2 retains version 3 after its deletion, which prevents version 2 from restoring an obsolete value. Append a legitimate K2 version 4 and rerun. A real implementation must persist the change and version together. Verify the selected Openflow connector’s source offsets, snapshot behavior, delete representation and restart procedure before choosing destination keys.

Related lesson · Load new and changed records safely

Knowledge check

Choose an ingestion path with Snowflake Openflow quiz

Answer 3 questions. Check each answer for an explanation.

Worked example · Choose an ingestion path with Snowflake Openflow