Snowflake Overview
TheSNOWFLAKE route stores MQTT messages in Snowflake, a cloud-native data warehouse. It supports high-volume data ingestion with automatic scaling and powerful SQL analytics.
Snowflake is ideal for large-scale analytics, data lakes, and enterprise reporting. Use it when you need to analyze IoT data alongside other business data in the cloud.
Basic Syntax
Connection Configuration
SNOWFLAKE_CONFIG Parameters
Snowflake connection string with account, user, and password.
Connection Options
Connection Options
Authentication
Authentication
Snowflake user role.
Writing Data
- Basic Storage
- With Connection Pool
- Multiple Tables
- UPSERT
- UPDATE
- DELETE
Store sensor data in Snowflake:
Alternative: STORE IN with Models — Instead of writing EVENT queries, you can bind a model directly to this route. Every See Data Storage Overview for the full STORE IN workflow.
PUBLISH MODEL call automatically inserts a row — no query needed:Reading Data
EVENTs also support SELECT queries to read data back from the database. Publish a message to the event’sSOURCE_TOPIC, and the query result is published to DESTINATION_TOPIC:
db/result/latest, where your actions or external clients can consume it.
Timed Polling
EVENTs can also run SELECT queries on a fixed schedule usingWITH EVERY:
Table Schema Examples
Connection String Format
Troubleshooting
Connection Failed
Connection Failed
- Verify account identifier is correct
- Check username and password
- Ensure warehouse exists and is running
- Verify network allows Snowflake connections
Permission Errors
Permission Errors
- Verify ROLE has INSERT permissions
- Check user has access to WAREHOUSE
- Ensure user can access DATABASE and SCHEMA
Query Timeout
Query Timeout
- Increase QUERY_TIMEOUT value
- Check warehouse size is adequate
- Verify warehouse is not suspended
Next Steps
Data Storage Routes Overview
Compare all storage options.
File Storage Route
Configure local file storage.

