Snowpipe Streaming (High-Performance Architecture)
Guides users through setting up, troubleshooting, monitoring, optimizing, and migrating Snowpipe Streaming pipelines using the High-Performance Architecture.
Important Context
- Only the High-Performance Architecture — classic is planned for deprecation mid-2026
- Python SDK (
snowpipe-streaming PyPI package) is the primary SDK; Java SDK is an alternative
- The High-Performance Architecture uses PIPE objects — channels open against pipes, not directly against tables
- Default pipe naming:
<TABLE_NAME>-STREAMING (auto-created on first use)
- Schema evolution: Default pipes automatically adapt to source schema changes (new columns added automatically). Schematization via Kafka Connect is optional, not required.
- Key-pair authentication is required for SDK access
Intent Detection
| Intent |
Triggers |
Route |
| SETUP |
"set up", "create", "configure", "new pipeline", "get started", "quickstart" |
setup/SKILL.md |
| TROUBLESHOOT |
"debug", "fix", "error", "failing", "not working", "troubleshoot", "channel error", "offset gap" |
troubleshoot/SKILL.md |
| MONITOR |
"monitor", "status", "check", "health", "dashboard", "channel status", "costs", "billing" |
monitor/SKILL.md |
| OPTIMIZE |
"optimize", "improve", "throughput", "latency", "performance", "cost reduction", "tune" |
optimize/SKILL.md |
| MIGRATE |
"migrate", "upgrade", "classic to v2", "move from classic", "switch SDK", "deprecation", "high-performance" |
migrate/SKILL.md |
Workflow
User Request
↓
Detect Intent (see table above)
↓
├─→ SETUP → Load setup/SKILL.md
├─→ TROUBLESHOOT → Load troubleshoot/SKILL.md
├─→ MONITOR → Load monitor/SKILL.md
├─→ OPTIMIZE → Load optimize/SKILL.md
└─→ MIGRATE → Load migrate/SKILL.md
If intent is ambiguous, ask the user:
What would you like to do with Snowpipe Streaming?
1. Set up a new pipeline
2. Troubleshoot an existing pipeline
3. Monitor pipeline health & costs
4. Optimize performance or costs
5. Migrate from classic to High-Performance Architecture
Tools
Script: health_check.py
Description: Checks pipeline health — channel status, offset progress, row errors, ingestion gaps. Auto-detects timestamp column or accepts --timestamp-column override.
Usage:
# Via uv run
uv run --project <SKILL_DIR>/scripts python <SKILL_DIR>/scripts/health_check.py \
--database <DB> --schema <SCHEMA> --table <TABLE> \
--connection <CONNECTION_NAME>
# Or install and use CLI entry point
cd <SKILL_DIR>/scripts && uv pip install -e .
ss-health-check --database <DB> --schema <SCHEMA> --table <TABLE>
Script: stream_demo.py
Description: End-to-end demo — creates table, opens channel, streams sample rows, verifies ingestion.
Usage:
# Via uv run
uv run --project <SKILL_DIR>/scripts python <SKILL_DIR>/scripts/stream_demo.py \
--database <DB> --schema <SCHEMA> --table <TABLE> \
--private-key-path <KEY_PATH> --account <ACCOUNT> --user <USER>
# Or install and use CLI entry point
ss-demo --database <DB> --schema <SCHEMA> --table <TABLE> \
--private-key-path <KEY_PATH> --account <ACCOUNT> --user <USER>
References
SDK Code Samples
Load the relevant file based on the user's integration method:
references/python-sdk.md — Python SDK (minimal, production service, FastAPI, offset tracking)
references/java-sdk.md — Java SDK (minimal, batch, self-healing)
references/rest-api.md — REST API (JWT auth, append rows, compression)
references/kafka-connect.md — Kafka Connect (basic, schematized, Iceberg, Docker Compose)
references/common-patterns.md — Profile JSON, key-pair generation, VARIANT best practices
Monitoring Queries
Load references/monitoring-queries.md for SQL queries covering channel health, throughput, offset gaps, and cost analysis.
Key Documentation Links
1---2name: snowpipe-streaming3description: "**[REQUIRED]** Use for ALL Snowpipe Streaming tasks: setup, configure, troubleshoot, monitor, optimize, or migrate streaming pipelines. Covers the High-Performance Architecture exclusively. Triggers: snowpipe streaming, streaming ingestion, low-latency ingestion, real-time ingestion, Snowpipe Streaming SDK, channel, insertRows, appendRows, streaming channel, PIPE object, streaming pipe, snowpipe v2, high-performance streaming, migrate classic streaming, troubleshoot streaming."4metadata:5 source: https://skillmd.com/skills/s-14-h/snowpipe-streaming6---78# Snowpipe Streaming (High-Performance Architecture)910Guides users through setting up, troubleshooting, monitoring, optimizing, and migrating Snowpipe Streaming pipelines using the High-Performance Architecture.1112## Important Context1314- **Only the High-Performance Architecture** — classic is planned for deprecation mid-202615- **Python SDK** (`snowpipe-streaming` PyPI package) is the primary SDK; Java SDK is an alternative16- The High-Performance Architecture uses **PIPE objects** — channels open against pipes, not directly against tables17- Default pipe naming: `<TABLE_NAME>-STREAMING` (auto-created on first use)18- **Schema evolution**: Default pipes automatically adapt to source schema changes (new columns added automatically). Schematization via Kafka Connect is optional, not required.19- Key-pair authentication is required for SDK access2021## Intent Detection2223| Intent | Triggers | Route |24|--------|----------|-------|25| **SETUP** | "set up", "create", "configure", "new pipeline", "get started", "quickstart" | `setup/SKILL.md` |26| **TROUBLESHOOT** | "debug", "fix", "error", "failing", "not working", "troubleshoot", "channel error", "offset gap" | `troubleshoot/SKILL.md` |27| **MONITOR** | "monitor", "status", "check", "health", "dashboard", "channel status", "costs", "billing" | `monitor/SKILL.md` |28| **OPTIMIZE** | "optimize", "improve", "throughput", "latency", "performance", "cost reduction", "tune" | `optimize/SKILL.md` |29| **MIGRATE** | "migrate", "upgrade", "classic to v2", "move from classic", "switch SDK", "deprecation", "high-performance" | `migrate/SKILL.md` |3031## Workflow3233```34User Request35 ↓36Detect Intent (see table above)37 ↓38 ├─→ SETUP → Load setup/SKILL.md39 ├─→ TROUBLESHOOT → Load troubleshoot/SKILL.md40 ├─→ MONITOR → Load monitor/SKILL.md41 ├─→ OPTIMIZE → Load optimize/SKILL.md42 └─→ MIGRATE → Load migrate/SKILL.md43```4445If intent is ambiguous, ask the user:4647```48What would you like to do with Snowpipe Streaming?49501. Set up a new pipeline512. Troubleshoot an existing pipeline523. Monitor pipeline health & costs534. Optimize performance or costs545. Migrate from classic to High-Performance Architecture55```5657## Tools5859### Script: health_check.py6061**Description**: Checks pipeline health — channel status, offset progress, row errors, ingestion gaps. Auto-detects timestamp column or accepts `--timestamp-column` override.6263**Usage:**64```bash65# Via uv run66uv run --project <SKILL_DIR>/scripts python <SKILL_DIR>/scripts/health_check.py \67 --database <DB> --schema <SCHEMA> --table <TABLE> \68 --connection <CONNECTION_NAME>6970# Or install and use CLI entry point71cd <SKILL_DIR>/scripts && uv pip install -e .72ss-health-check --database <DB> --schema <SCHEMA> --table <TABLE>73```7475### Script: stream_demo.py7677**Description**: End-to-end demo — creates table, opens channel, streams sample rows, verifies ingestion.7879**Usage:**80```bash81# Via uv run82uv run --project <SKILL_DIR>/scripts python <SKILL_DIR>/scripts/stream_demo.py \83 --database <DB> --schema <SCHEMA> --table <TABLE> \84 --private-key-path <KEY_PATH> --account <ACCOUNT> --user <USER>8586# Or install and use CLI entry point87ss-demo --database <DB> --schema <SCHEMA> --table <TABLE> \88 --private-key-path <KEY_PATH> --account <ACCOUNT> --user <USER>89```9091## References9293### SDK Code Samples9495**Load** the relevant file based on the user's integration method:96- `references/python-sdk.md` — Python SDK (minimal, production service, FastAPI, offset tracking)97- `references/java-sdk.md` — Java SDK (minimal, batch, self-healing)98- `references/rest-api.md` — REST API (JWT auth, append rows, compression)99- `references/kafka-connect.md` — Kafka Connect (basic, schematized, Iceberg, Docker Compose)100- `references/common-patterns.md` — Profile JSON, key-pair generation, VARIANT best practices101102### Monitoring Queries103104**Load** `references/monitoring-queries.md` for SQL queries covering channel health, throughput, offset gaps, and cost analysis.105106## Key Documentation Links107108- [Snowpipe Streaming Overview](https://docs.snowflake.com/en/user-guide/snowpipe-streaming/data-load-snowpipe-streaming-overview)109- [High-Performance Architecture](https://docs.snowflake.com/en/user-guide/snowpipe-streaming/snowpipe-streaming-high-performance-overview)110- [Python SDK Reference](https://docs.snowflake.com/en/user-guide/snowpipe-streaming-sdk-python/reference/latest/index)111- [Best Practices](https://docs.snowflake.com/en/user-guide/snowpipe-streaming/snowpipe-streaming-high-performance-best-practices)112- [Getting Started Tutorial](https://docs.snowflake.com/en/user-guide/snowpipe-streaming/snowpipe-streaming-high-performance-getting-started)