What you will be able to do
- Explain how a pipe wraps a COPY INTO statement and runs it on serverless compute
- Diagnose why an auto-ingest pipe loads nothing, or why it ignores a re-staged file
- Size staged files so Snowpipe processes them efficiently
- Choose between bulk COPY, Snowpipe, Snowpipe Streaming and Openflow for a given source
- Place Openflow apart from pipes, and explain why it stays out of scope until it is globally GA
Key concept
Pipe — A pipe is a schema object that holds one COPY INTO statement. Snowpipe runs that statement on Snowflake-managed serverless compute each time it learns that a new file has arrived in the pipe's stage location.
1.A pipe wraps one COPY INTO statement
Snowpipe loads files continuously as they arrive in a stage, so the data does not wait for the next scheduled batch. A stage is a named pointer to files in internal or cloud storage; Stages (internal, external) and file formats covers how to create one. What Snowpipe adds is the pipe: a schema object that holds a single COPY INTO statement naming the source stage, the target table, the file format and any copy options. You define the load once, and Snowpipe runs it for every new file.
CREATE PIPE mydb.myschema.orders_pipe
AUTO_INGEST = TRUE
AS
COPY INTO mydb.myschema.orders
FROM @mydb.myschema.orders_stage
FILE_FORMAT = (TYPE = 'JSON')
MATCH_BY_COLUMN_NAME = CASE_INSENSITIVE;The pipe definition has no WAREHOUSE clause. Snowflake supplies and scales the compute for every load, so there is no warehouse to size, start or suspend. You pay a fixed number of credits per GB loaded instead of paying for warehouse time. For text files that is the uncompressed size; for binary files it is the size in storage. New data typically becomes queryable within a minute of Snowpipe learning about the file. Snowflake does not guarantee that latency, and large files, or files that are expensive to decompress, decrypt or transform, take longer.
Each new file goes through the same four steps:
- Snowpipe learns about the file, from a cloud storage event notification or from a call to the Snowpipe REST API.
- Snowpipe adds the file to the pipe's ingest queue.
- Snowflake-provided compute runs the pipe's COPY INTO on the queued files and commits the rows to the target table.
- Snowpipe records the file in the pipe's load metadata, whether it loaded or failed.
The underlying statement is the same one described in COPY INTO for loading and unloading. Wrapping it in a pipe changes how it behaves in three ways. It runs serverless rather than on your warehouse. Snowpipe may combine or split loads across several transactions, whereas each bulk COPY INTO runs as a single transaction. The transformations are also limited: a pipe can reorder, omit or cast columns with a simple SELECT, but WHERE clauses, FLATTEN, joins and GROUP BY are not supported. A pipe's definition also cannot be edited. To change it you recreate the pipe, and recreating it drops its load metadata.
Openflow is not a pipe, and it is not yet a service to design an ingestion path around. It is a separate integration service built on Apache NiFi that pulls straight from databases, SaaS applications and streaming services, so it needs no files in a stage, which is the one thing a pipe requires. Its gen 2 connector configuration is still in Public Preview, so Openflow stays out of scope until it is globally GA. Until then, ingestion questions are settled by Snowpipe, Snowpipe Streaming, streams and tasks, and dynamic tables.
Checkpoint 1 of 9· Fill the gap
This pipe loads JSON files from an external stage into a table as they arrive. Which keyword completes the statement the pipe wraps?
CREATE PIPE mydb.myschema.orders_pipe
AUTO_INGEST = TRUE
AS
? INTO mydb.myschema.orders
FROM @mydb.myschema.orders_stage
FILE_FORMAT = (TYPE = 'JSON')
MATCH_BY_COLUMN_NAME = CASE_INSENSITIVE;A pipe is a schema object that holds exactly one COPY INTO statement, which names the source stage, the target table, the file format and the copy options. Snowpipe runs that statement on serverless compute for every new file. INSERT and MERGE are DML statements and cannot be the body of a pipe.
Source: docs.snowflake.com2.How a pipe learns about new files: auto-ingest or REST
A pipe can be triggered in two ways. With AUTO_INGEST = TRUE, your cloud storage service sends Snowpipe an event notification whenever a file lands. Without it (the default is FALSE), Snowpipe waits for your application to call the Snowpipe REST API insertFiles endpoint with the names of the files to load. The application authenticates with key pair authentication or workload identity federation. Both paths feed the same ingest queue. They differ only in how the pipe learns that a file exists.
| Where the files are | How Snowpipe learns about them |
|---|---|
| Amazon S3 | Auto-ingest: S3 event notifications delivered through Amazon SQS, Amazon SNS or Amazon EventBridge |
| Google Cloud Storage | Auto-ingest: Google Cloud Pub/Sub and a notification integration |
| Microsoft Azure Blob Storage, Data Lake Storage Gen2, general-purpose v2 | Auto-ingest: Azure Event Grid, a storage queue and a notification integration |
| Any supported external stage, a named internal stage, or a table stage | REST API: a pipe without AUTO_INGEST = TRUE, called through insertFiles |
Auto-ingest only works when the notification chain is complete. For S3, the notification channel is an Amazon SQS queue that appears in the SHOW PIPES output, and the bucket has to publish its object-created events to that queue. On Google Cloud Storage and Azure, the pipe instead references a notification integration that gives Snowflake access to the Pub/Sub subscription or the storage queue. If that wiring is missing, the pipe still creates successfully and the stage still lists the files, but Snowpipe never hears about them. Auto-ingest from internal stages is in public preview and only available on AWS-hosted accounts.
Enabling notifications does not backfill. A new pipe loads only the files that arrive after event notifications are set up, so files that were already in the stage have to be loaded separately. A file that fails to parse is not dropped silently either. It shows a Load failed status in the copy history and a FAILED state in Snowpipe events.
Checkpoint 2 of 9· Check yourself
A team creates an auto-ingest pipe on an S3 stage and finishes the event notification setup. The bucket already holds 500 files from last month. Then 20 new files arrive. What does the pipe load?
Auto-ingest acts only on event notifications, and only files that arrive after the notifications are set up send one. Turning on notifications does not backfill, so you load the files already in the stage separately. Auto-ingest pipes do not need insertFiles calls; insertFiles is how a pipe without AUTO_INGEST learns about files.
“With automated loading, a new pipe loads only the files that arrive after you set up event notifications.”Source: docs.snowflake.com
Checkpoint 3 of 9· Exam question
An engineer creates a Snowpipe object with AUTO_INGEST = TRUE referencing an external stage that points at an Amazon S3 bucket, but new files landing in the bucket are never automatically loaded into the target table. The pipe was created successfully and the stage lists the files when queried manually. What is the most likely cause of the missing automatic ingestion?
Correct answer: B — The S3 bucket was never configured with an event notification that publishes object-created events to the SQS queue Snowflake generated for the pipe.
- A. Snowpipe runs on serverless compute that Snowflake manages rather than on a user virtual warehouse, so a suspended warehouse has no effect on whether files are automatically picked up.
- B. Auto-ingest from an external stage depends on the cloud provider publishing object-created events to the SQS queue Snowflake created for the pipe (the notification_channel value from DESCRIBE PIPE); without that S3 event notification wired to the queue, Snowflake never learns new files arrived, even though a manual listing of the stage still shows them.
- C. Clustering keys affect query pruning over already-loaded data and have no bearing on how Snowflake discovers new files arriving in a stage; the bucket's folder layout is unrelated to the table's clustering.
- D. Omitting a file format does not stop Snowflake from receiving notifications: the format defaults to CSV when neither the COPY statement nor the stage defines one, so the pipe is created normally and any parsing problems would show up as load errors for files Snowflake did receive, not as missing notifications.
Sources1
3.Load metadata: why a pipe never reloads the same file
Every pipe keeps load metadata, a record of the files it processed in the last 14 days. Snowpipe records a file whether it loaded or failed, and if the same file is staged again, Snowpipe ignores it. This is what stops duplicate rows when a notification is delivered twice. It also produces a common failure: an engineer overwrites sales_2026_09_10.csv in the stage with corrected data, keeps the same name, and waits. Nothing happens, because the pipe treats the file as already loaded.
Bulk loading keeps its own, separate load history, and it lets you reload a file deliberately with FORCE. For standard tables it also lets you check files with VALIDATION_MODE before loading them. A pipe offers neither option. Recreating the pipe clears its load metadata, but that can lose files or load them twice, so it needs planning rather than being a quick reset.
Errors follow a different default too. By default Snowpipe skips any file that contains an error (ON_ERROR = SKIP_FILE) and goes on loading the other files. A bulk COPY INTO stops the whole load by default (ON_ERROR = ABORT_STATEMENT), and pipes do not support that option.
Checkpoint 4 of 9· Check yourself
Yesterday an auto-ingest pipe loaded inventory_eu.csv. Today an analyst finds bad rows in it, fixes them, and uploads the corrected file to the stage under the same name. What gets the corrected data into the table?
For 14 days the pipe's load metadata keeps a record of every file it processed, so it ignores a file staged again under the same name, however it hears about it. Pipes don't support FORCE or VALIDATION_MODE. A bulk COPY INTO with FORCE is the deliberate way to reload the file.
“Bulk loading also lets you reload files with FORCE”Source: docs.snowflake.com
Checkpoint 5 of 9· Exam question
A data engineer needs to reload a corrected version of a file named sales_2026_09_10.csv that Snowpipe already loaded successfully into the SALES table. The engineer overwrites the file in the stage with the corrected data using the same file name and waits for Snowpipe to reprocess it automatically. Why does the corrected data never reach the table?
Correct answer: C — Snowpipe tracks previously loaded files by name and path in its load metadata for a retention window, so a same-named file is treated as already loaded.
- A. Directory table caches describe stage contents for querying purposes; they are not the mechanism Snowpipe uses to decide whether a file has already been loaded, so this is not the cause of the skipped reload.
- B. Overwriting an object in cloud storage does not reset or require recreating the bucket's event notification configuration, so the notification path itself keeps working after the overwrite.
- C. Snowpipe retains file-level load metadata, keyed by name and path, for a period of time to guarantee files are not reloaded; a same-named file is therefore skipped even though its contents changed, which is exactly why the corrected rows never appear without a forced refresh or a new file name.
- D. Pipes do not automatically pause themselves after a successful load; execution pausing is an explicit administrative action, so this is not what is blocking the corrected file.
Sources1
4.File size drives Snowpipe efficiency
Snowflake's file-sizing guidance applies to Snowpipe as well as to bulk loads: aim for data files of roughly 100-250 MB (or larger) compressed. Every file adds processing overhead, so the recommendation is to aggregate smaller files. A source that writes thousands of 200 KB CSV files every few seconds pays that overhead thousands of times. Batching the records into larger files before they reach the stage cuts the per-file work and keeps costs and latency steadier.
Several alternatives fail to fix this. Switching from auto-ingest to the REST API changes only how Snowpipe learns about each file; every file still goes through the same queue and COPY run. Stronger compression makes each file smaller but leaves the number of files unchanged. A clustering key on the target table has no effect on how files are discovered or grouped during a load. The opposite extreme is also a problem: loading very large files (for example, 100 GB or larger) is not recommended.
Checkpoint 6 of 9· Check yourself
An IoT gateway writes thousands of 200 KB CSV files to an S3 stage every few seconds, and an auto-ingest pipe loads them. Snowpipe costs and latency are uneven. Which change reduces the per-file overhead?
Every file has its own processing overhead, so the fix is fewer, larger files of about 100-250 MB compressed. Auto-ingest and the REST API differ only in how Snowpipe learns about a file, and each file still goes through the same queue and COPY run. Compression leaves the number of files unchanged, and a clustering key does not affect how files are discovered or grouped.
“Snowpipe learns about the file, either from a cloud storage event notification or from a call to the Snowpipe REST API.”Source: docs.snowflake.com
Checkpoint 7 of 9· Exam question
A retail company loads thousands of small CSV files (average 200 KB) into Snowflake every few seconds using Snowpipe with auto-ingest configured against an Amazon S3 event notification through SQS. The data engineering team notices that file processing latency is inconsistent. Which change best follows Snowflake's file-sizing guidance to reduce the per-file processing overhead while maintaining near-real-time ingestion?
Correct answer: A — Aggregate records into larger files, staged roughly once per minute, instead of staging a new tiny file every few seconds, to cut per-file processing overhead.
- A. Snowflake's data loading guidance is to aggregate smaller files to minimize the processing overhead for each file, aiming for files of roughly 100-250 MB compressed or larger and, for Snowpipe, creating a new file about once per minute rather than every few seconds. Snowpipe now bills a fixed number of credits per GB loaded rather than per file, so the benefit of consolidating is more consistent latency and throughput, not avoiding a per-file charge.
- B. Auto-ingest and the REST API only differ in how Snowpipe is notified about new staged files. File size and staging frequency still affect latency and throughput whichever trigger is used, so swapping the trigger leaves the many-tiny-files pattern in place.
- C. Clustering keys influence how micro-partitions are organized for query pruning after data is loaded. They have no role in how staged files are grouped or processed during Snowpipe ingestion, so changing them cannot reduce the number of files Snowpipe handles.
- D. A stronger compression codec only shrinks the bytes in each file. The number of staged files is unchanged, so the per-file processing overhead stays the same, and the files would only get smaller than the recommended range.
Sources3
5.Snowpipe Streaming writes rows, not files
Snowpipe Streaming skips files entirely. Applications, devices and services send rows directly into Snowflake tables or Snowflake-managed Iceberg tables, without staging files or intermediate object storage. Data becomes queryable in as little as 5 seconds, and throughput reaches up to 20 GB/s per table. Like Snowpipe, it is serverless, but it bills credits per uncompressed GB ingested. The rows still pass through a PIPE object, and that pipe can use COPY command syntax to reorder columns, cast types and apply expressions before the rows are committed.
A channel is the logical path that carries rows through a pipe to a target table, and the two channel types offer different delivery guarantees. The choice depends on whether the source needs strict ordering.
| Aspect | Elastic Channels | Named Channels |
|---|---|---|
| Who manages channels | Snowflake creates and scales them; producers just write | The application, one channel per source partition |
| Delivery guarantee | At-least-once, no ordering guarantee | Ordered, exactly-once within each channel, using offset tokens |
| Fits | Most new applications, IoT and telemetry | Sources that need strict ordering, such as Kafka partitions or CDC |
Rows can arrive through the Java SDK, the Python SDK, the Node.js SDK, the REST API or the Snowflake Connector for Kafka. The three SDKs share a Rust-based client core that buffers, batches and compresses appends automatically. Direct REST clients have to group rows into newline-delimited JSON and handle compression themselves. Use an SDK where you can, and keep direct REST for lightweight workloads, IoT devices and edge deployments where an SDK does not fit.
Checkpoint 8 of 9· Check yourself
Which Snowpipe Streaming setup fits a CDC feed read from Kafka partitions, where rows must be applied in source order and must not be duplicated after a producer restarts?
Named Channels give ordered, exactly-once ingestion within each channel by using offset tokens, and they map to source partitions such as Kafka partitions. Elastic Channels deliver at least once with no ordering guarantee. A file-based pipe adds staging and latency without any ordering guarantee, and REST versus SDK changes only how rows are sent, not the delivery guarantee.
“Use Named Channels when reading from a source that requires strict ordering semantics, such as Kafka partitions or Change Data Capture (CDC).”Source: docs.snowflake.com
Sources4
6.Choosing between bulk COPY, Snowpipe, Snowpipe Streaming and Openflow
The first question is the shape of the data when it arrives. If it is already files in cloud storage and a minute of delay is acceptable, use Snowpipe. If it is rows or events and you need them within seconds, use Snowpipe Streaming; Kafka topics go through the Kafka connector, which is built on Snowpipe Streaming. A large one-time or scheduled batch belongs to bulk COPY INTO on a warehouse.
| Characteristic | Bulk COPY INTO | Snowpipe | Snowpipe Streaming |
|---|---|---|---|
| Data source | Files in a stage | Files in a stage | Rows from the SDK, REST API or Kafka connector |
| How loading starts | Run manually or on a schedule, such as from a task | Event notification or a REST API call | Continuously, as the client sends rows |
| Typical latency | Depends on how often you run it | Typically within a minute | As low as 5 seconds |
| Compute | Virtual warehouse you size and manage | Serverless | Serverless |
| Billing | Warehouse credits while it runs | Fixed credits per GB loaded | Credits per uncompressed GB ingested |
Openflow covers sources that are neither files nor event streams, such as an operational database or a SaaS application. It is an integration service built on Apache NiFi that connects any data source to any destination. Its connectors pull data straight from the source system, so you do not have to export files first. It runs as a managed service, deployed either inside your own VPC or within your Snowflake deployment.
None of these paths joins, aggregates or filters rows during a load. Where you need that logic, land the raw data first, then transform it inside Snowflake with dynamic tables, or with streams and tasks.
Checkpoint 9 of 9· Match them up
For each ingestion requirement, pick the loading path this lesson recommends.
Tap a term, then the definition that fits it.
The first question is what shape the data arrives in. Files that arrive continuously go to Snowpipe, and large scheduled batches go to bulk COPY INTO on a warehouse. Rows that must be available within seconds go to Snowpipe Streaming. A database or SaaS source that is neither files nor an event stream goes to an Openflow connector, which ingests directly from the source system.
“Your source is a database or SaaS application rather than files. Use an Openflow connector to ingest the data directly from the source system.”Source: docs.snowflake.com
Sources
(4)
Every claim above is drawn from one of these pages, quoted as it was written on the date shown.
- 1.
“You define the load once in a pipe, a schema object that holds a COPY INTO statement”
↩︎ A pipe wraps one COPY INTO statement“you pay a fixed number of credits for each GB of data that Snowpipe loads”
↩︎ A pipe wraps one COPY INTO statement“With automated loading, a new pipe loads only the files that arrive after you set up event notifications.”
↩︎ How a pipe learns about new files: auto-ingest or REST“AUTO_INGEST = TRUE turns on automated loading (also called auto-ingest)”
↩︎ How a pipe learns about new files: auto-ingest or REST“Each pipe keeps load metadata, which is a record of the files that it processed in the last 14 days”
↩︎ Load metadata: why a pipe never reloads the same file“Your source is a database or SaaS application rather than files. Use an Openflow connector to ingest the data directly from the source system.”
↩︎ Choosing between bulk COPY, Snowpipe, Snowpipe Streaming and Openflow“Snowpipe runs that statement for every new file on serverless compute that Snowflake manages”
↩︎ Key concept“Each pipe keeps load metadata, which is a record of the files that it processed in the last 14 days”
↩︎ Exam trap 1“Bulk loading, in contrast, stops the load by default when a file contains an error (ON_ERROR = ABORT_STATEMENT)”
↩︎ Exam trap 2“Snowpipe learns about the file, either from a cloud storage event notification or from a call to the Snowpipe REST API.”
↩︎ Exam trap 3“For automated loading, you also configure event notifications for your storage location so that Snowpipe learns about new files.”
↩︎ Prediction“Bulk loading also lets you reload files with FORCE”
↩︎ Checkpoint“Snowpipe learns about the file, either from a cloud storage event notification or from a call to the Snowpipe REST API.”
↩︎ Checkpoint - 2.
“gen 2 connector configuration remains in Public Preview”
↩︎ A pipe wraps one COPY INTO statement“Snowflake Openflow is an integration service that connects any data source and any destination”
↩︎ A pipe wraps one COPY INTO statement“Snowflake Openflow is an integration service that connects any data source and any destination”
↩︎ Choosing between bulk COPY, Snowpipe, Snowpipe Streaming and Openflow“gen 2 connector configuration remains in Public Preview”
↩︎ Exam trap 4 - 3.
“we recommend aiming to produce data files roughly 100-250 MB (or larger) in size compressed”
↩︎ File size drives Snowpipe efficiency“Aggregate smaller files to minimize the processing overhead for each file.”
↩︎ File size drives Snowpipe efficiency“these recommendations apply to bulk data loads as well as continuous loading using Snowpipe”
↩︎ File size drives Snowpipe efficiency - 4.https://docs.snowflake.com/en/user-guide/snowpipe-streaming/data-load-snowpipe-streaming-overviewOfficial docs
“Named Channels provide ordered, exactly-once ingestion within each channel by using offset tokens.”
↩︎ Snowpipe Streaming writes rows, not files“Elastic Channels provide at-least-once delivery without an ordering guarantee.”
↩︎ Snowpipe Streaming writes rows, not files“Use Snowpipe when your pipeline already produces files in cloud storage and batch-oriented, higher-latency loading is acceptable.”
↩︎ Choosing between bulk COPY, Snowpipe, Snowpipe Streaming and Openflow“Use Named Channels when reading from a source that requires strict ordering semantics, such as Kafka partitions or Change Data Capture (CDC).”
↩︎ Checkpoint