Airflow
Overview
This guide walks you through updating your Apache Airflow Snowflake connection to point to Espresso's infrastructure. The key change is replacing your Snowflake host (<your_host>.snowflakecomputing.com) with the corresponding Espresso host (<your_host>.espressocomputing.com).
Prerequisites
Access to your Airflow environment (UI or config files)
Your Espresso account details (host, account name, database, warehouse, etc.)
The package
apache-airflow-providers-snowflakemust be version >= 6.0.0 for the host parameter to work.
Steps
Option A: Update via the Airflow UI
Navigate to Admin → Connections in the Airflow web UI.
Find and click on your Snowflake connection (default ID:
snowflake_default).In the Extra field, add or update the
hostparameter to your Espresso endpoint:
{
"account": "<your_account>",
"database": "<your_database>",
"warehouse": "<your_warehouse>",
"host": "<your_host>.espressocomputing.com"
}Update Login and Password if your Espresso credentials differ from your previous Snowflake credentials.
Click Save.
Option B: Update via Environment Variable (JSON format)
If you manage connections through environment variables, update the variable as follows:
Option C: Update via Environment Variable (URI format)
If using the URI format (common in Airflow versions prior to 2.3.0):
Note: All URI components should be URL-encoded.
Verifying the Connection
After updating, test the connection by:
Clicking Test on the connection page in the Airflow UI (Airflow 2.5+), or
Running a simple DAG task that queries Espresso (e.g., a
SnowflakeOperatorwithSELECT 1).
Troubleshooting
Authentication errors — Double-check that your Login and Password match your Espresso credentials. If using key pair or OAuth authentication, ensure the relevant Extra fields (
private_key_file,authenticator, etc.) are also updated.Connection timeouts — Verify that your Airflow environment has network access to
<your_host>.espressocomputing.com.Schema/database not found — Confirm that the
database,schema, andwarehousevalues exist in your Espresso account.
Last updated