Module 08 · Data Ingestion

Continuous Ingestion: Snowpipe & Snowpipe Streaming

Read a clear definition, compare the concepts, then try the SQL or client command. Detailed explanations and diagrams remain available when you need them.

Before you begin

Intermediate · 12 lessons · About 180 minutes including detailed reading.

Prerequisite: Semi-Structured & Structured Data. Reading needs no account. Manual SQL practice requires an authorized Snowflake account, suitable role and warehouse. Commands are examples, not executed by this website.

Complete Modules 05–07 first. Use a separate M8_LAB schema and choose one cloud provider for the auto-ingest lab. Cloud notification/IAM setup requires authorized administrator access. Streaming recovery is a labelled design exercise; a live flow additionally requires a supported authenticated SDK or REST client. Read the setup details before executing templates.

Begin Module 08 →
New to SQL? Where to run it and how to read it

A query is a question written in SQL. Snowflake runs it and returns a result table. This website shows examples; it does not connect to your account.

  1. No account yet? Read and predict the output first. Follow the account and Snowsight lesson when you are ready.
  2. For SQL practice, use a learning account in Snowsight and select an authorized role and warehouse. A role determines permissions; a warehouse supplies processing power. Follow the example’s database/schema setup when it refers to stored objects.
  3. Read the entire example, including comments beginning with --. Run the selected statement or labeled block in the stated order. Examples labeled Python, shell or HTTP belong in that client, not in a SQL editor.
  4. Compare values and row counts with the explained result. If an example deliberately causes an error, follow its rollback and cleanup steps before continuing.
SELECT / FROM
Choose the values to return / identify their input.
VALUES / COLUMN1
VALUES supplies tiny example rows. COLUMN1 means their first column, COLUMN2 their second.
AS / WITH
AS gives a result a readable name. WITH names a temporary query step within one statement.
NULL / ::
NULL means missing or unknown. The :: notation converts a value to a named data type.
Session
One connection and its settings. Keep related transaction steps in the same session.
Database.schema.table
A full address for stored data. It is separate from the warehouse that processes queries.

Need the L2_OBJECTS_LAB setup? Open the first database-object lesson →

Help with common practice errors
  • No active warehouse: select a warehouse your role can use. Do not assume you need to create a new one.
  • Object missing or not authorized: check the full name, required setup and active role. Ask the account owner for access if needed.
  • Object already exists: setup may already have run. Read the current state or choose a fresh lab name consistently; do not add OR REPLACE blindly.
  • Different result: check whether an earlier INSERT or UPDATE changed the data. VALUES examples provide their own fresh input for each statement.
What this module covers

Your lesson path

  1. Lesson 1 · About 15 min

    Choose COPY, Snowpipe or Streaming

    Choose ingestion from the source you receive and the freshness you need: batches of files, arriving files, or rows.

    Read and practise →
  2. Lesson 2 · About 15 min

    A pipe connects a file location to a table

    A file-based pipe stores a COPY definition. Notifications or REST requests tell its managed ingestion service which files to process.

    Read and practise →
  3. Lesson 3 · About 15 min

    AWS: S3 events through SQS, SNS or EventBridge

    S3 arrival events reach a Snowflake-managed SQS queue. Direct notifications, SNS fan-out and EventBridge routing provide different delivery paths.

    Read and practise →
  4. Lesson 4 · About 15 min

    GCS: Pub/Sub notifications

    GCS publishes file-finalization events to Pub/Sub; a notification integration lets Snowflake consume a dedicated subscription.

    Read and practise →
  5. Lesson 5 · About 15 min

    Azure: Event Grid and Storage Queue

    Azure Event Grid routes completed blob events into a storage queue that Snowflake reads through a notification integration.

    Read and practise →
  6. Lesson 6 · About 15 min

    File REST ingestion and outbound error alerts

    REST can announce staged files when your application controls discovery. An outbound error integration reports qualifying load failures.

    Read and practise →
  7. Lesson 7 · About 15 min

    Monitor queues, recover missed files and control retries

    Trace a file through arrival, notification, queue, load history and target rows before deciding how to retry it.

    Read and practise →
  8. Lesson 8 · About 15 min

    Streaming architecture, SDKs and REST

    Snowpipe Streaming accepts records directly. The high-performance architecture uses server-side pipes for ingestion and optional transformations.

    Read and practise →
  9. Lesson 9 · About 15 min

    Channels and offsets: recover without guessing

    A Named Channel ties a source partition to committed progress. Recovery reuses that identity and resumes from the confirmed source position.

    Read and practise →
  10. Lesson 10 · About 15 min

    Kafka, Iceberg and operational monitoring

    A connector manages transport, but you still choose table compatibility, recovery boundaries and operational signals.

    Read and practise →
  11. Lesson 11 · About 15 min

    Cost and capacity: measure bytes and freshness

    Managed ingestion removes warehouse administration for loading, but ingestion, storage, cloud messaging and downstream queries still have costs.

    Read and practise →
  12. Lesson 12 · About 15 min

    Lab: auto-ingest a file and design streaming recovery

    Prove one file flow end to end, then walk through a streaming crash using explicit checkpoints.

    Read and practise →

Continue learning

Module 09: Openflow & Source Connectors →

Full curriculum and reference library →