Migrating from Redshift to Snowflake: A Step-by-Step Playbook
Last updated: October 2026
Quick answer: UNLOAD your Redshift data to S3 as Parquet, COPY INTO Snowflake, translate Redshift-specific SQL (DISTKEY, SORTKEY and DISTSTYLE are dropped, GETDATE() becomes CURRENT_TIMESTAMP(), CONVERT becomes CAST), run row-count and aggregate validation, then cut over. SnowConvert AI, Snowflake's free conversion tool, handles much of the translation. Plan 8 to 16 weeks. The biggest surprise is usually type casting errors, because Redshift's implicit casting is more permissive than Snowflake's.
Why Teams Leave Redshift
Nobody migrates a data warehouse for fun. Teams leave Redshift for a mix of cost and operational reasons. Resizing a provisioned cluster still needs planning, even though AWS supports changing node type or size with elastic or classic resize. Peak-hour queues need tuning through workload management and concurrency scaling, and distribution and sort key choices need ongoing attention as data grows. Routine maintenance is lighter than it used to be, because Redshift runs automatic vacuum delete, automatic table sort and automatic analyze in the background. Snowflake's separation of storage and compute, and its model of separate warehouses per workload, removes most of this tuning. Here's how to do the migration.
Phase 1: Schema Audit
Before you move a single row, you need a complete inventory of what you're migrating. Run these queries against Redshift's system catalog:
-- List all tables with row counts and sizes (size is in 1 MB blocks).
-- "table" is a reserved word, so both column names are quoted.
SELECT "schema", "table",
tbl_rows AS row_count,
size AS size_mb
FROM svv_table_info
ORDER BY size DESC;
-- Distribution style and sort keys per table
SELECT "table", diststyle, sortkey1, sortkey_num
FROM svv_table_info
WHERE "schema" = 'public';
-- Find views and their definitions
SELECT schemaname, viewname, definition
FROM pg_views
WHERE schemaname NOT IN ('pg_catalog','information_schema');
SVV_TABLE_INFO lists only tables that contain data, and only superusers can see it unless SELECT has been granted on it, so run the audit as a suitably privileged user. Pay special attention to: tables with DISTSTYLE KEY (these relied on co-located joins, which Snowflake doesn't need), tables with compound or interleaved sort keys (Snowflake uses automatic micro-partition pruning instead), and any views using Redshift-specific functions.
Phase 2: SQL Translation
This is where most of the work happens. Here are the Redshift SQL patterns that need to change:
DDL Changes
- DISTKEY / SORTKEY / DISTSTYLE: Remove entirely. Snowflake doesn't use distribution keys. Drop these clauses from all CREATE TABLE statements.
- ENCODE: Remove column compression encodings (e.g.,
ENCODE lzo,ENCODE zstd). Snowflake handles compression automatically. - IDENTITY columns: Replace
IDENTITY(1,1)with Snowflake'sAUTOINCREMENTorIDENTITY(same keyword, slightly different syntax).
Function Translations
-- GETDATE() -> CURRENT_TIMESTAMP() -- Redshift: SELECT GETDATE(); -- Snowflake: SELECT CURRENT_TIMESTAMP(); -- CONVERT(type, expression) is a cast in Redshift -- Redshift: SELECT CONVERT(INTEGER, order_total); -- Snowflake: SELECT CAST(order_total AS INTEGER); -- Date formatting with TO_CHAR is the same on both -- Redshift and Snowflake: SELECT TO_CHAR(order_date, 'YYYYMMDD'); -- DATEADD with different syntax -- Redshift: SELECT DATEADD(day, 7, GETDATE()); -- Snowflake: SELECT DATEADD(day, 7, CURRENT_TIMESTAMP()); -- DATEDIFF returns different precision -- Redshift: SELECT DATEDIFF(hour, start_ts, end_ts); -- Snowflake: SELECT DATEDIFF(hour, start_ts, end_ts); -- (Same syntax, but watch for timestamp precision differences) -- LISTAGG behavior differs -- Redshift: SELECT LISTAGG(name, ',') WITHIN GROUP (ORDER BY name) -- Snowflake: SELECT LISTAGG(name, ',') WITHIN GROUP (ORDER BY name) -- (Same syntax. The result is a VARCHAR, which can now hold up to 128 MB) -- NVL2 is supported in both, but check edge cases -- ISNULL -> use NVL or COALESCE in Snowflake -- Approximate count distinct -- Redshift: SELECT APPROXIMATE COUNT(DISTINCT user_id) FROM events; -- Snowflake: SELECT APPROX_COUNT_DISTINCT(user_id) FROM events;
The biggest gotcha: Redshift's implicit type casting is far more permissive than Snowflake's. Redshift silently casts a VARCHAR to a NUMBER in a WHERE clause. Snowflake will throw Numeric value 'abc' is not recognized. You'll discover type mismatches you never knew existed in your data. Run your test queries against Snowflake early and fix casting issues before cutover. Use TRY_CAST() and TRY_TO_NUMBER() to handle dirty data gracefully.
Scoping this migration for real? We size the work off your actual object and job inventory, not a template. You get a sequenced plan, the pipelines built in the order that keeps reporting alive, and the parallel-run checks that decide when the old system can be turned off.
Book a migration review How we run migrationsPhase 3: Data Migration
The fastest path is S3 as the bridge:
- UNLOAD from Redshift to S3 as Parquet, which preserves types and compresses better than CSV:
SQL - Redshift UNLOAD
UNLOAD ('SELECT * FROM schema.table_name') TO 's3://migration-bucket/redshift-export/table_name/' IAM_ROLE 'arn:aws:iam::123456789:role/RedshiftUnload' FORMAT AS PARQUET ALLOWOVERWRITE PARALLEL ON MAXFILESIZE 256 MB; - Create Snowflake external stage pointing to the S3 bucket.
- COPY INTO from stage to Snowflake tables:
SQL - Snowflake COPY INTO
COPY INTO schema.table_name FROM @migration_stage/redshift-export/table_name/ FILE_FORMAT = (TYPE = PARQUET) MATCH_BY_COLUMN_NAME = CASE_INSENSITIVE;
For ongoing replication during the migration period, consider AWS DMS (Database Migration Service) for CDC, or tools like Matillion or Talend for managed ELT. For the schema and SQL, SnowConvert AI is Snowflake's free conversion tool and has a Redshift translation reference. Its data migration feature for Redshift unloads tables to Parquet in an S3 bucket in the same region as the cluster, then loads them into the deployed Snowflake tables. For details on loading data from Azure to Snowflake, see our Azure-to-Snowflake loading guide.
Phase 4: Performance Tuning in Snowflake
- Warehouse sizing: Start with X-Small for development and size production warehouses from test runs of real queries. New standard warehouses are Gen2 by default where available, billed at 1.35 credits an hour for X-Small on AWS and GCP and 1.25 on Azure, against 1 credit for Gen1, and query acceleration is on by default for new standard warehouses. Set
GENERATIONandENABLE_QUERY_ACCELERATIONexplicitly so the cost model is the one you planned. A running warehouse is billed per second, with a one-minute minimum each time it starts, until auto-suspend stops it, so set AUTO_SUSPEND to 60 to 300 seconds. - Clustering keys: Most tables don't need them. Snowflake's automatic micro-partition pruning handles most use cases. Add clustering keys only for very large tables, typically several terabytes, where queries consistently filter on specific columns. Check pruning efficiency with
SYSTEM$CLUSTERING_INFORMATION('table_name'). - Result caching: Snowflake caches query results for 24 hours. If a dashboard runs the same query and the underlying data hasn't changed, the result returns instantly at zero compute cost. This alone often makes Snowflake feel faster than Redshift for BI workloads.
- WLM queue mapping: Redshift's WLM (Workload Management) queues map to separate Snowflake virtual warehouses. Create a
WH_ETLfor pipeline jobs and aWH_BIfor dashboard queries. They share storage but don't compete for compute. For more on this, see managing compute workloads for ETL vs analytics.
Phase 5: Testing and Validation
- Row count validation: Compare
SELECT COUNT(*)for every table between Redshift and Snowflake. This catches load failures and filtering issues. - Aggregate comparison: For critical tables, compare counts, sums of numeric columns and distinct counts of business keys per day or per partition in both systems. If you also compare row hashes, build each input with COALESCE and a delimiter, for example
MD5(COALESCE(col1, '') || '|' || COALESCE(col2, '')), and format numbers and timestamps as text the same way on both sides. Concatenation returns NULL when any value is NULL, and without a delimiter ('ab', 'c') and ('a', 'bc') produce the same hash. - Query regression testing: Run your top 50 most-executed queries (from Redshift's
SYS_QUERY_HISTORYview, which AWS now recommends over STL_QUERY) against both systems and compare results. Watch for subtle differences in NULL handling, date truncation, and floating-point precision. - BI dashboard validation: Have analysts open every production dashboard pointing at Snowflake and verify the numbers match. Don't skip this - dashboards often have implicit assumptions about query behavior that unit tests won't catch.
Phase 6: Cutover Planning
The cutover itself should be boring. If it's exciting, you didn't test enough. Here's the pattern that works:
- Run Redshift and Snowflake in parallel for 2-4 weeks with data syncing via CDC.
- Point non-critical dashboards at Snowflake first. Monitor for issues.
- Gradually migrate critical workloads. Keep Redshift as a fallback.
- Once all workloads are on Snowflake and stable for 1 week, decommission Redshift.
- Plan the cutover around reserved node end dates. Redshift reserved nodes are billed for every hour of their one- or three-year term whether or not they are used, and there is no self-service cancellation, so the saving comes from not renewing them.
Key Takeaways
- UNLOAD to S3 as Parquet, then COPY INTO Snowflake. SnowConvert AI, now free, converts Redshift DDL and SQL and includes a data migration feature for Redshift.
- Drop DISTKEY, SORTKEY, DISTSTYLE, and ENCODE from all DDL. Snowflake doesn't need them.
- Budget 30% of your SQL for translation work. The biggest pain point is implicit type casting differences.
- Use
TRY_CAST()in Snowflake to handle dirty data that Redshift silently accepted. - Map Redshift WLM queues to separate Snowflake warehouses, set AUTO_SUSPEND to 60 to 300 seconds, and set GENERATION and query acceleration explicitly.
- Run parallel systems for 2-4 weeks before cutover. Test every dashboard, not just every query.
Frequently Asked Questions
Q: How long does a Redshift to Snowflake migration take?
Typical migrations take 8-16 weeks depending on the number of schemas, SQL complexity, and downstream dependencies. Schema translation and SQL conversion usually take 2-4 weeks. Data migration takes 1-2 weeks. Testing and validation take 3-6 weeks.
Q: Do I need to rewrite all my Redshift SQL for Snowflake?
Not all of it. Standard ANSI SQL works in both. But Redshift-specific syntax like DISTKEY, SORTKEY, DISTSTYLE, WLM queues, GETDATE(), CONVERT(), and certain LISTAGG behaviors need to be translated. Expect 15-30% of SQL statements to require changes.
Q: What is the best way to move data from Redshift to Snowflake?
UNLOAD from Redshift to S3 as Parquet files, then COPY INTO from S3 to Snowflake, using both platforms' native bulk load features. Keep the Snowflake account in the same AWS region as the bucket to avoid cross-region transfer charges. SnowConvert AI's data migration feature for Redshift follows the same pattern.
Q: Does Snowflake need DISTKEY and SORTKEY equivalents?
No. Snowflake uses automatic micro-partition pruning instead of distribution and sort keys. For very large tables, typically several terabytes, with predictable query patterns, you can add clustering keys, but most tables perform well without them.
Planning Your Migration?
Use our free tools to estimate costs and ensure nothing gets missed:
🧮 Snowflake Cost Calculator → ✅ 50-Point Migration Checklist →Related Articles
Still have questions?
Get AssistanceReady? Let's Talk!
Get expert insights and answers tailored to your business requirements and transformation.
Get Assistance