useWarehouse
Last updated: January 27, 2026
Sets the active warehouse for the current Snowflake session. This allows you to control which warehouse executes subsequent operations within a changeset.
Note: This change type does not support automatic rollback. Session state is transient.
Available attributes
Attribute | Type | Description | Required |
|---|---|---|---|
| String | Name of the warehouse to use for this session | Yes |
loading
loading
loading
loading
Important considerations
- Session state only affects the current Liquibase execution
- Each changeset starts with the session warehouse context from the previous changeset
- Changes are not persistent across Liquibase runs
- Not captured in database snapshots (diff/generate-changelog)
- Use useWarehouse instead of raw <sql>USE WAREHOUSE ...</sql> tags for governance