Snowflake External Tables: Query Your Data Lake Without Loading It
Last updated: October 2026
Quick answer: External tables let Snowflake query files in S3, GCS, or ADLS without copying them into Snowflake storage. You define a metadata layer over the external files, and Snowflake reads them at query time. Queries are slower than on native tables, by an amount that depends on file format, file sizes and partitioning, but you avoid duplicating data and paying Snowflake storage for rarely accessed datasets. For Parquet data shared with other engines, Snowflake now recommends considering Iceberg tables.
What External Tables Are
A regular Snowflake table stores data in Snowflake-managed micro-partitions. An external table doesn't store any data. It's a metadata layer that tells Snowflake where to find files in an external cloud storage location (S3 bucket, GCS bucket, or ADLS container), what format they're in, and how to parse them.
When you query an external table, Snowflake reads the files from the external storage at query time. The data never gets copied into Snowflake. This suits data lakes where several engines, such as Snowflake, Databricks, Spark and Presto, need the same data without a copy for each.
The recommended approach for that case has shifted. For Parquet files, Snowflake's documentation now says to consider Apache Iceberg tables instead of external tables for better query performance, and external tables over Delta Lake files will be deprecated in a future release. Iceberg tables also support INSERT, UPDATE and DELETE, and a catalog-linked database can discover the tables in an external Iceberg REST catalog, such as Snowflake Open Catalog, AWS Glue or Unity Catalog, and keep them in sync. External tables remain a simple option for read-only access to files.
Setting Up: Storage Integration and External Stage
Before creating an external table, you need two things: a storage integration (for authentication) and an external stage (pointing to the file location). Here's the S3 setup:
-- ACCOUNTADMIN by default, or a role granted CREATE INTEGRATION
-- or CREATE STORAGE INTEGRATION
CREATE OR REPLACE STORAGE INTEGRATION s3_data_lake_int
TYPE = EXTERNAL_STAGE
STORAGE_PROVIDER = 'S3'
STORAGE_AWS_ROLE_ARN = 'arn:aws:iam::123456789012:role/snowflake-s3-access'
ENABLED = TRUE
STORAGE_ALLOWED_LOCATIONS = ('s3://my-data-lake/events/');
-- Get the AWS IAM info to configure the trust policy
DESC STORAGE INTEGRATION s3_data_lake_int;
CREATE OR REPLACE STAGE ext_events_stage URL = 's3://my-data-lake/events/' STORAGE_INTEGRATION = s3_data_lake_int FILE_FORMAT = (TYPE = 'PARQUET');
Creating an External Table with Partitioning
The key to usable external table performance is partitioning. If your S3 files are organized by date (e.g., s3://bucket/events/year=2026/month=02/day=27/), you can define partition columns that let Snowflake prune files at query time instead of scanning everything.
CREATE OR REPLACE EXTERNAL TABLE analytics.ext_events (
-- Partition column derived from the file path. metadata$filename includes the
-- stage path, e.g. events/year=2026/month=02/day=27/part-0001.parquet, so each
-- folder name is split on '=' to keep only the value.
event_date DATE AS (
TO_DATE(
SPLIT_PART(SPLIT_PART(metadata$filename, '/', 2), '=', 2) || '-' ||
SPLIT_PART(SPLIT_PART(metadata$filename, '/', 3), '=', 2) || '-' ||
SPLIT_PART(SPLIT_PART(metadata$filename, '/', 4), '=', 2),
'YYYY-MM-DD'
)
),
-- Data columns from Parquet files
event_id VARCHAR AS (value:event_id::VARCHAR),
user_id INT AS (value:user_id::INT),
event_type VARCHAR AS (value:event_type::VARCHAR),
properties VARIANT AS (value:properties::VARIANT),
event_timestamp TIMESTAMP_NTZ AS (value:event_timestamp::TIMESTAMP_NTZ)
)
PARTITION BY (event_date)
LOCATION = @ext_events_stage
AUTO_REFRESH = TRUE
FILE_FORMAT = (TYPE = 'PARQUET');
The PARTITION BY (event_date) clause tells Snowflake to use the event_date column for partition pruning. A query with WHERE event_date = '2026-02-27' only reads files from that day's folder, skipping everything else.
Want this running in your own account? We build Snowflake platforms end to end: ingestion, modelling, access control, and the monitoring that tells you when a load drifts. Not slide decks. Not roadmaps. Real working systems you can point at.
Book a Snowflake call Snowflake consultingAuto-Refresh: Keeping Metadata Current
With AUTO_REFRESH = TRUE, Snowflake uses cloud event notifications to detect new files:
- S3: SQS (Simple Queue Service) notifications triggered by new object creation.
- GCS: Pub/Sub notifications.
- ADLS: Azure Event Grid notifications.
When a new file lands in the S3 bucket, Snowflake picks up the SQS event, updates the external table's metadata, and the file becomes queryable. This process is eventually consistent, so a new file becomes queryable shortly after it arrives, not at the same moment. Snowflake does not document a fixed delay.
For the S3 setup, Snowflake provides an SQS queue ARN once the external table exists. It appears in the notification_channel column of SHOW EXTERNAL TABLES, and you configure the bucket's event notification to send to that queue:
-- Copy the notification_channel value into the S3 event notification SHOW EXTERNAL TABLES LIKE 'EXT_EVENTS' IN SCHEMA analytics;
If auto-refresh isn't configured, you'll need to manually refresh the metadata:
ALTER EXTERNAL TABLE analytics.ext_events REFRESH;
Performance: External vs Native Tables
External tables are fundamentally slower than native Snowflake tables. Here's why:
- No micro-partition optimization: Snowflake can't apply its columnar compression, min/max pruning, or clustering optimization to external files.
- Network reads and file layout: Every query reads the files over the network from S3, GCS or ADLS, in whatever sizes and layout they were written. Native table data also lives in cloud object storage, but Snowflake manages its layout and metadata, and warehouses cache recently read data on local SSD.
- Result caching with a caveat: query results on external tables are cached for 24 hours, and they are invalidated when a refresh changes the set of registered files. With auto-refresh off, a cached result can be stale until the next refresh.
In practice, external table queries are noticeably slower than the same query on a native table, and the gap depends on file format, file sizes and how well partitions prune. Parquet files perform better than CSV because Snowflake can push down column pruning into the file format. Properly partitioned external tables with narrow date-filtered queries can approach native performance.
Materialized Views Over External Tables
If you need better query performance on frequently-accessed external data, create a materialized view over the external table. Snowflake caches the results and automatically refreshes them when the underlying data changes:
-- Functions in a materialized view must be deterministic, so the 30-day
-- filter belongs in the query on the view, not in the view itself.
CREATE OR REPLACE MATERIALIZED VIEW analytics.mv_daily_events AS
SELECT
event_date,
event_type,
COUNT(*) AS event_count,
APPROX_COUNT_DISTINCT(user_id) AS approx_unique_users
FROM analytics.ext_events
GROUP BY event_date, event_type;
SELECT *
FROM analytics.mv_daily_events
WHERE event_date >= DATEADD('day', -30, CURRENT_DATE());
The materialized view stores precomputed results in Snowflake's native storage. Queries against the MV run at native table speed. Snowflake auto-refreshes the MV when it detects new files in the external table, though there's a delay. Materialized views require Enterprise Edition, and they do not allow COUNT(DISTINCT) or non-deterministic functions such as CURRENT_DATE(), which is why the example uses APPROX_COUNT_DISTINCT and filters by date outside the view.
When to Use External Tables
Good Use Cases
- Read-only access to shared lake files: query files that other engines also use, without duplicating them. For shared Parquet data, compare Iceberg tables first.
- Cost savings for cold data: Keep rarely-queried historical data in cheaper S3 storage instead of paying Snowflake storage rates.
- Compliance requirements: When data must remain in a specific storage location for regulatory reasons.
- ELT staging: Use external tables as a read-only view of landing zone files before running COPY INTO to load them into native tables.
Bad Use Cases
- High-frequency queries: If the same table gets queried 100+ times per day, the performance penalty adds up. Load it natively.
- Interactive dashboards: Dashboard users expect sub-second response times. External tables can't deliver that.
- DML requirements: You can't INSERT, UPDATE, or DELETE on external tables. If you need write access, use native or Iceberg tables.
- Complex joins: Joining external tables with native tables forces Snowflake to read the external data for every query execution.
The Partition Pruning Gotcha
File-level pruning on external tables only works if your partition columns are properly defined and your queries filter on them. If you define an external table without partition columns, Snowflake scans every file in the stage for every query - even if you only need yesterday's data.
The metadata refresh is eventually consistent. After a new file arrives in S3, there's a short window, which Snowflake does not specify, before the table knows about it. If a pipeline writes a file and immediately queries the external table, it might miss the new data, so run a manual REFRESH before querying.
Key Takeaways
- External tables are a metadata layer over S3/GCS/ADLS files. Data stays in external storage and is read at query time.
- Queries are slower than on native tables. Use partitioning and well-sized Parquet files to narrow the gap.
- For Parquet data shared across engines, Snowflake now recommends considering Iceberg tables, which also support DML.
- Auto-refresh uses cloud event notifications (SQS, Pub/Sub, Event Grid) and is eventually consistent, so refresh manually when a pipeline needs a file immediately.
- Materialized views over external tables give native query speed for frequent aggregations, on Enterprise Edition and with deterministic functions only.
- Always define partition columns, and check the expression against real file paths. Without them, Snowflake scans every file for every query.
Frequently Asked Questions
Q: How fast are Snowflake external tables compared to native tables?
They are slower for the same query, because Snowflake reads the files from external storage in the layout they were written, without the metadata and layout it manages for native tables. Snowflake does not publish a ratio. The gap narrows with Parquet files, sensible file sizes and partitioning, and Snowflake suggests Iceberg tables for better performance on Parquet data.
Q: Can I run DML on Snowflake external tables?
No. External tables are read-only in Snowflake. You can SELECT from them and use them in joins, but you cannot INSERT, UPDATE, or DELETE rows. To modify the data, you must update the files in the external storage directly.
Q: How does auto-refresh work for Snowflake external tables?
Auto-refresh uses cloud event notifications (SQS for S3, GCS Pub/Sub, or Azure Event Grid) to detect new files in the external stage. When a new file lands, Snowflake automatically updates the external table's metadata. This is eventually consistent, so there can be a short delay before the file is queryable.
Q: When should I use external tables instead of loading data into Snowflake?
Use external tables for rarely queried data, simple read-only access to files that other tools also use, or when the data must stay in its original location for compliance. For Parquet data shared across engines, Snowflake recommends considering Iceberg tables, which perform better and support DML.
Related Articles
Still have questions?
Get AssistanceReady? Let's Talk!
Get expert insights and answers tailored to your business requirements and transformation.
Get Assistance