Migrate from Amazon Redshift to ClickHouse

A planning guide to moving Redshift tables, SQL and loads to self-hosted ClickHouse, covering the three documented load paths, what does not move cleanly, the cutover sequence and the drivers of cost and duration.

On this page

Migrate from Amazon Redshift to ClickHouse: what the move involves

The move from Amazon Redshift to ClickHouse comes down to three things: the data leaves Redshift through UNLOAD to S3 or a connector, the tables and SQL are redesigned for ClickHouse, and a data platform team runs the cutover, usually with an implementation partner for the parts that are new to them. Renewal and pricing pressure usually start the project, but residency and lock-in concerns often shape the target design, since ClickHouse runs in your own AWS account, a data center or an air-gapped network. The work is rarely a straight port of Redshift DDL. Sort keys and distribution styles do not map directly to ClickHouse table engines and ordering keys, and Redshift's PostgreSQL-flavored SQL needs rewrites in several places, including functions and window behavior that you should test against your own queries.

Who does the work depends on the size of the estate. A platform or data engineering lead owns the target cluster design, including ReplicatedMergeTree tables, ClickHouse Keeper nodes, backups and access control. Analytics engineers own the query rewrites and the dashboard reconnection, and security or compliance staff review authentication, encryption and audit logging before any production data arrives. Effort is driven mainly by the number of tables and downstream consumers, the amount of stored Redshift data and the number of stored procedures or UDFs that must be re-implemented, not by the unload step itself. Ask any partner for a written scope that lists these items, and confirm your own Redshift table and query inventory before accepting a timeline.

The main risk is running two warehouses for longer than planned. Plan for a parallel period in which results from both systems are compared on the same business questions, and treat that comparison as the acceptance test. Check that ClickHouse restores work before go-live by following the ClickHouse guidance to test-restore backups on a spare cluster, because a backup that has never been restored may not restore when needed. Confirm the ClickHouse version you will run against the ClickHouse production FAQ, which recommends a pre-production environment with representative data and queries before any upgrade.

Which Redshift capabilities map cleanly to ClickHouse and which need rework

This table compares the Redshift features your workload relies on with their ClickHouse counterparts, marking each row as clean, needs rework or gap. Read it before estimating migration effort, because the rework rows usually decide how much SQL, schema and access logic you must rewrite.

Redshift capabilityClickHouse equivalentStatusMigration note
Tables and distribution/sort keysMergeTree tables with ORDER BY and partition keysneeds reworkSort keys map to ORDER BY, but distribution styles have no direct equivalent; redesign for query patterns and shard layout.
UNLOAD to S3UNLOAD to Parquet, read with the s3 table functioncleanRedshift UNLOAD writes Parquet version 1.0 with SNAPPY, and PARTITION BY writes Hive-style folders that ClickHouse can read.
Redshift SQL functionsClickHouse SQL functionsneeds reworkMany functions differ in name or semantics, so test each query on representative data rather than assuming equal results.
Stored proceduresNo direct equivalentgapMove procedural logic into application code, scheduled jobs or materialized view pipelines, and confirm each use case with your team.
User-defined functionsExecutable UDFs or built-in functionsneeds reworkPython UDFs need a rewrite to SQL, executable UDFs or application logic; confirm the path for each function.
Materialized viewsIncremental materialized viewsneeds reworkBehavior on updates and deletes differs, so validate refresh semantics against source tables before cutover.
Workload managementSettings profiles, quotas and resource limitsneeds reworkQueues and concurrency slots must be redesigned; confirm limits with your own load tests.
Spectrum and zero-ETL integrationss3 and other table functions, or ETL pipelinesgapNo managed zero-ETL equivalent is included; plan ingestion pipelines and confirm connector support for each source.
Access control and usersSQL-based access control with LDAP, Kerberos or JWT authenticatorsneeds reworkMap Redshift users, groups and grants to ClickHouse roles, and confirm external authenticators in your environment.
PostgreSQL table functionNot usable against RedshiftgapClickHouse's PostgreSQL table function does not work with Redshift, so use UNLOAD, the JDBC Bridge or an ETL tool instead.

What data and integrations move, and through which documented path

Three documented routes move data from Redshift to ClickHouse, and each one carries a different amount of work on the Redshift side and the ClickHouse side. The cards below cover the routes, the UNLOAD output details that shape the pivot, and the BI, user and application connections that must be rebuilt once data lands.

Pivot through S3 with UNLOAD

Run UNLOAD to write each table to S3, then read the files with the s3 table function in ClickHouse. The files stay in your own bucket, so the copy is auditable and can be replayed if a load fails. The cost is an extra storage copy and a second load step. Confirm that the IAM role used by UNLOAD can write to the target prefix and that ClickHouse can read it.

UNLOAD reference

Parquet as the production pivot

ClickHouse's Redshift guide recommends Parquet as the pivot format for large production migrations. Parquet is columnar and typed, which keeps numeric and timestamp columns intact and reduces load time compared with text formats. Test a representative table end to end before committing to the format, and record row counts and checksums per table so each load can be verified.

Redshift migration guide

UNLOAD Parquet file details

UNLOAD writes Parquet version 1.0 files with SNAPPY-compressed row groups, and PARTITION BY writes Hive-style partition folders. Partitioned output lets ClickHouse load one date range at a time and makes incremental reloads simpler. Check that column types that Redshift stores in ways Parquet 1.0 cannot represent, such as some SUPER or GEOMETRY values, are either cast beforehand or excluded.

JDBC Bridge pull with INSERT INTO SELECT

The JDBC Bridge lets ClickHouse read Redshift directly and run INSERT INTO ... SELECT, which avoids an intermediate S3 copy. It suits smaller tables or one-off corrections, but every row travels through the bridge and through the Redshift cluster's compute. Note that ClickHouse's PostgreSQL table function does not work with Redshift, so the bridge is the supported live path. Confirm bridge sizing and Redshift concurrency limits before a large pull.

ETL push with Airbyte or similar tools

A third-party ETL tool such as Airbyte reads Redshift and writes into ClickHouse, which keeps the Redshift-to-ClickHouse logic in a tool your team can schedule and monitor. This route adds a component to license or operate, its own credentials, and its own failure modes. Ask whether the tool supports incremental sync on your chosen cursor columns and how it handles schema changes.

BI, user and application reconnection

Dashboards, service accounts, and application connection strings all point at Redshift and must be rebuilt against ClickHouse. ClickHouse supports LDAP, Kerberos, SSL X.509 certificates, HTTP authenticators and JWT as external authenticators, and access is set through its access control model. Inventory every consumer before cutover, map each Redshift user and group to a ClickHouse role, and test each BI connector against ClickHouse's SQL dialect.

Migration sequence from inventory to decommission

This sequence moves a Redshift workload to self-hosted ClickHouse in stages, so each step produces evidence the next one depends on. The end state is a ClickHouse cluster that has passed a parallel run, carries production traffic, and lets you retire Redshift only after a restore test succeeds.

  1. Inventory tables, queries, loads and users

    The data platform team lists every schema, table, view, stored procedure and scheduled load in Redshift, then pulls query history from the system tables to see which statements run, how often, and which users or BI tools send them. Owners are assigned for each table and dashboard. Done means you have a written inventory that maps every load to its source, every consumer to its queries, and every table to an owner, with tables nobody has queried for a long period flagged for retirement.

  2. Choose a representative pilot schema

    Select one schema that covers the patterns you need to prove: a large wide event table, a few dimension tables, typical filter and aggregation queries, and at least one load pipeline. Avoid picking the simplest schema, since it proves little. Done means a short pilot charter names the schema, the queries that must return correct results, the loads that must run, and the people who sign off on the outcome.

  3. Redesign the pilot schema and rewrite queries

    Engineers translate the pilot tables into ClickHouse table definitions, choosing MergeTree engines, sorting keys and partitioning based on the filter and join patterns from the query history, and rewrite Redshift-specific SQL. Data types are mapped and checked against the unload format. Done means the schema is in a pre-production ClickHouse cluster and every pilot query has a ClickHouse version that the owners have reviewed.

  4. Run the pilot load and validate results

    The team moves the pilot data through the chosen path, either UNLOAD to S3 as Parquet followed by the s3 table function, a JDBC bridge pull, or an ETL tool, and runs the rewritten queries on both engines. Row counts, checksums and aggregate results are compared, and query latency is recorded on representative data. Done means each pilot query returns matching results or has a documented, approved difference, and the team has a measured record of load time and query times to plan the rest of the migration.

  5. Run both engines in parallel

    For the agreed period, production loads are sent to Redshift and ClickHouse at the same time, and downstream reports or application queries are run against both systems. Reconciliation jobs compare outputs daily or on a schedule the owners set, and mismatches are logged and assigned. Done means the parallel run has produced a clean reconciliation record across the business cycles that matter, such as month-end, and the owners accept the ClickHouse outputs in writing.

  6. Cut over BI tools and applications

    Dashboards, semantic layers and application connection strings are switched to ClickHouse group by group, starting with lower-risk consumers. Authentication moves to the chosen external authenticator or user model, and access rights are re-created and reviewed. Redshift stays read-only during the transition so that rollback is possible. Done means every consumer on the inventory is pointed at ClickHouse, access reviews are signed off, and no consumer depends on Redshift for current data.

  7. Restore-test backups before decommissioning Redshift

    Before Redshift is switched off, the team takes a ClickHouse BACKUP to storage that is separate from the cluster, restores it into a spare cluster, and checks row counts and key queries against the expected results. Retention, encryption and access to the backup target are confirmed. Done means a restore test has passed and is documented, because a backup that has never been restored may not restore when it is needed. Only then is the Redshift cluster and its final UNLOAD archive retired under the agreed retention policy.

How Redshift data reaches ClickHouse during the parallel run

The main path starts with Redshift running UNLOAD to write Parquet files into an S3 bucket, which is the first trust boundary the data crosses. ClickHouse then reads those files with the s3 table function and loads them into MergeTree tables in the ClickHouse cluster, the second boundary. The JDBC Bridge and ETL tool paths are shown as alternatives for smaller or non-Parquet loads. Check that both boundaries carry encryption, access controls and logging, and that BI tools point at ClickHouse only after row counts and query results match during the parallel run.

Primary Parquet path through S3, with JDBC Bridge and ETL alternatives shown dashed.

Why schema redesign and query rewrites take most of the effort

Schema redesign and query rewrites usually take more effort than the data copy, because a Redshift schema is designed around distribution and sort keys while a ClickHouse table is designed around its MergeTree ordering key and partitioning. In Redshift, the DISTKEY and SORTKEY choices decide how rows are spread across nodes and scanned on disk. In ClickHouse, the ORDER BY clause of a MergeTree table decides the on-disk sort order and the sparse index that prunes reads, and the PARTITION BY clause decides how data is grouped for drops and detaches. Teams that copy the Redshift layout table for table often get a schema that loads but scans more data than it should. Before writing DDL, decide the ordering key from the filters and joins your heaviest queries actually use, and confirm the partition key keeps the number of partitions small.

Data types and SQL dialect differences need a translation pass, not a find-and-replace. Redshift's SQL is PostgreSQL-flavored, while ClickHouse has its own functions, type names and some different defaults for NULL handling, string and date functions, and joins. Review every column type in the UNLOAD output against ClickHouse types, including decimal precision, timestamps with time zones and any semi-structured columns, and record each decision in a mapping document that the data engineers and BI owners both sign off. Stored procedures and window functions also need individual rewrites rather than automated conversion, so inventory them first.

Queries should be re-validated against representative data, not copied from the Redshift query log and expected to return the same results. Build a test set from the top queries by runtime and business importance, run each on Redshift and ClickHouse against the same extract, and compare row counts, aggregates and edge cases such as NULLs and time zone boundaries. Check performance on a dataset at realistic production volume, since ordering keys only show their value at scale. Read the ClickHouse production guidance on pre-production environments with representative data before deciding what a passing test looks like, and confirm the exact expectations with your own data owners.

How the migration differs by starting point

A small set of tables feeding a simple BI layer is the lightest starting point. Most of the work is in reproducing a handful of tables, their types and the dashboards that read them, so the migration can usually run as a single pass with a short parallel period. Because the data volume is modest, the pivot through S3 is often not needed, and a direct pull through the JDBC bridge or an ETL tool may be enough for a first load.

  • Inventory the objects: list every table, view and dashboard query that reads from Redshift, and mark the ones that BI tools depend on.
  • Redesign the table definitions: choose ClickHouse engines and sort keys per table instead of copying Redshift distribution and sort keys one to one.
  • Rewrite the queries: translate the dashboard SQL to ClickHouse SQL and test each result set against Redshift output.
  • Load and reconcile: run the load with an ETL tool or the JDBC bridge, then compare row counts and aggregates per table.
  • Repoint the BI layer: switch the connection and retire the Redshift objects after the comparison holds.

Before you start, confirm with your BI vendor which ClickHouse connector and version it supports, since this is often the step that sets the timeline.",

What drives migration cost and duration, and how to keep each down

This table lists the main drivers of effort when moving Redshift workloads to self-hosted ClickHouse, what each one changes, and how to limit it. Read it as a checklist for scoping and for asking vendors and implementation partners what their quote covers. The main takeaway is that data volume and the amount of Redshift-specific logic matter less than the parallel run, restore testing and the ongoing operating work that ClickHouse adds.

DriverWhy it changes cost or effortHow to keep it down
Data volume and table countExport time, S3 transfer, Parquet conversion and load time grow with the bytes and number of tables moved. UNLOAD parallelism and file sizing affect how long each load takes.Migrate in waves by domain. Drop or archive tables nobody queries. Use PARTITION BY on UNLOAD so loads can run per partition.
Stored procedures, UDFs and Redshift-specific SQLEach procedure or Python UDF needs a rewrite or a replacement design, and queries that rely on PostgreSQL 8.x behavior need translation. ClickHouse's PostgreSQL table function does not work with Redshift, so pulls from the source cannot use it.Inventory procedures and UDFs before scoping. Move transformation logic into scheduled ClickHouse SQL or the upstream pipeline where that is simpler. Confirm which functions need a rewrite.
BI tools and application connectionsEvery dashboard, report and service that reads Redshift needs its connection, credentials and SQL checked against ClickHouse. Query result differences surface here first.List connections and query owners early. Repoint read-only consumers in batches and keep a short reconciliation of key reports.
Choice of migration pathPush with an ETL tool, pull through the JDBC Bridge with INSERT INTO ... SELECT, or pivot through S3 with UNLOAD. Each path has different licensing, operating and throughput trade-offs.ClickHouse recommends Parquet through S3 for large production migrations. Ask the partner to justify any other path against your volumes.
Parallel run lengthRunning Redshift and ClickHouse side by side means paying for both during the overlap, and reconciliation work continues until the cutover is accepted.Agree exit criteria for reconciliation before the run starts. Set a cutover date tied to those criteria, not to calendar convenience.
Replication with ClickHouse Keeper (recurring)ClickHouse Keeper replaces ZooKeeper. The replication guide recommends at least three Keeper nodes on dedicated hosts in production, with about 4 GB of RAM each. These nodes are a standing cost and a monitoring item.Size Keeper hosts once and monitor them. Confirm host sizing with the ClickHouse replication guide and your own load tests.
Backups and restore testing (recurring)BACKUP and RESTORE to S3-compatible storage add storage cost and schedule work. The backup documentation warns that a backup never test-restored will probably not restore properly, so restore tests on spare clusters are part of the job.Automate incremental backups. Schedule restore tests on a spare cluster and record the results as evidence. Ask what restore testing is included in any quote.
Upgrades on supported versions (recurring)Stable releases ship roughly monthly, and only listed versions receive security updates. Upgrades need a pre-production environment with representative data and a changelog review because minor backward-incompatible changes can occur.Pin to a version on the supported list. Keep a pre-production cluster for upgrade tests. Confirm who owns upgrade cycles after handover.
Authentication and access setupIntegrating LDAP, Kerberos, X.509 or JWT authentication, and role-based access, adds configuration and review time before go-live.Decide the identity model before schema work. Confirm which external authenticator your directory supports, and document the access rules for review.

What usually goes wrong in a Redshift to ClickHouse move

Most Redshift to ClickHouse migrations fail in predictable places: backups nobody has restored, replication mistaken for protection, and results that look right but differ. The cards below pair each risk with a check to run before cutover, so the move can be reversed if something breaks.

Backups that never restore

A backup that has never been test-restored will probably not restore when you need it. Before relying on ClickHouse BACKUP and RESTORE for the migrated tables, restore a full and an incremental backup to a spare cluster and compare row counts and checksums against the source. Schedule the restore test as a recurring task, not a one-time check.

Backup docs

Replication mistaken for backup

ClickHouse replicas copy data quickly, including mistakes. A bad INSERT, an accidental DROP or a corrupted part reaches every replica, so replication alone gives no point-in-time recovery. Keep backups in a separate storage location with its own access controls, and confirm that a deleted table can be restored from a backup taken before the deletion.

Silent differences in query results

Redshift and ClickHouse differ in NULL handling, date and timestamp precision, integer division, string collation and aggregate behavior. These differences rarely raise errors, so a dashboard can show wrong numbers for weeks. Run a fixed set of business-critical queries against both systems on the same data window and diff the outputs before any BI tool is repointed.

PostgreSQL-based tooling that fails

Redshift's API is based on PostgreSQL 8.x, and ClickHouse's PostgreSQL table function does not work with Redshift. Teams that assume a PostgreSQL connector will pull data directly often lose days to failed attempts. Choose one of the documented paths (UNLOAD to S3 with Parquet, the JDBC bridge, or an ETL tool) during planning and test it on one large table first.

Redshift migration guide

Running an unsupported ClickHouse version

ClickHouse supports only specific releases with security updates, and all other versions are unsupported. Pinning a version chosen months earlier can leave a new cluster exposed on day one. Before provisioning, check the security policy and the release list, choose a stable or LTS line that is still supported, and write down the upgrade path you will follow.

Security policy

Cutover without a rollback path

A cutover that switches writers and readers in one step leaves no safe way back if ClickHouse returns wrong results after go-live. Keep Redshift running and loading in parallel for an agreed window, record the timestamp of the last load into each side, and define in advance what triggers a rollback and who decides. Reverting a BI connection should take minutes, not a rebuild.

Questions teams ask before moving from Redshift to ClickHouse

How much effort does a move from Redshift to ClickHouse take?

Effort depends mostly on how many tables, views, stored procedures and downstream consumers sit on Redshift, not on the row count alone. The main cost components are the engineering time to redesign tables for ClickHouse's MergeTree model, rewrite SQL that depends on Redshift-specific functions, rebuild the export and load pipeline, and test results side by side. Redshift's own charges are not the move cost; they keep running until you switch off. Ask any provider to break the estimate into schema work, query rewrites, pipeline build, validation and cutover, and to state which of these assumes an existing ClickHouse environment.

What drives the cost of moving off Redshift?

Four factors move the number most. The first is the count and complexity of workloads: dashboards, scheduled jobs and external consumers each need testing. The second is data volume and how often it changes, which sets the export and load cadence. The third is how much Python, UDF or stored procedure logic must be rewritten. The fourth is the ClickHouse operating model you choose, since self-hosted clusters need Keeper nodes, backups and monitoring that a managed service would otherwise carry. Ask for each of these as a separate line item so you can see which one a scope change would affect.

How long does the migration take?

No duration is fixed by the product itself, so treat any single number with caution. The timeline is set by how many workloads must be re-validated, how many teams must sign off on result parity, and how long the pipeline takes to backfill history. A practical sequence is to pick one representative data domain, move it end to end, then repeat for the rest. Ask your implementation partner to state the duration in writing against a defined scope, with milestones for schema design, first load, query parity testing and cutover.

What does the internal team need to provide?

The work needs people who know the data, not only people who know the cluster. Expect the team to supply someone who owns each business dataset, an engineer who understands the current Redshift pipelines and scheduled queries, and a BI owner who can confirm dashboard results. On the platform side, someone must own ClickHouse upgrades, which the project publishes as a stable release line plus LTS releases, and someone must run backup and restore tests. Confirm these roles early, because the most common delay is waiting for a business owner to approve parity results.

Can our own engineers do this in-house?

Yes, if the team has ClickHouse operations skills and time for the redesign. ClickHouse is open source under Apache-2.0, and its documentation covers the three documented migration paths: pushing with a third-party ETL tool, pulling through the JDBC Bridge, or pivoting through S3 with UNLOAD and the s3 table function. In-house teams usually struggle with schema redesign for ordering keys and partitions, and with proving that replication and backups work before go-live. Outside help is most useful for a fixed scope such as schema review, pipeline build or restore testing, and DeployOpen offers such fixed-scope work as one option among others.

How do we run Redshift and ClickHouse in parallel?

Run both systems against the same source data for a defined period, and compare outputs query by query before switching consumers. Load ClickHouse from a Parquet pivot in S3 or through the JDBC Bridge, then point a copy of each dashboard or job at ClickHouse. Keep Redshift as the system of record until parity is signed off. Trino can query Redshift and other sources side by side, which helps during comparison. Plan for double running costs on both sides, and set a date to stop Redshift writes so the comparison does not drift.

Does UNLOAD keep our data portable if we change plans?

Yes, UNLOAD writes the data out of Redshift as files in your own S3 bucket, so the copy is not locked inside the warehouse. According to the Amazon Redshift documentation, UNLOAD writes Parquet version 1.0 files with SNAPPY-compressed row groups and can write Hive-style partition folders with PARTITION BY. Portability still depends on what you export: check that data types, time zones and nested values survive the round trip, and keep a tested restore path. Also confirm that the files and bucket policies meet your own retention and encryption requirements before you delete anything in Redshift.

How DeployOpen scopes and runs a Redshift to ClickHouse migration

DeployOpen plans, implements, integrates, hardens, backs up and documents self-hosted ClickHouse inside the client's own cloud accounts, data centers or air-gapped networks. For a Redshift exit, that means the work covers more than loading tables: the target cluster, its ClickHouse Keeper ensemble, the S3 staging buckets used for UNLOAD output, network paths between AWS and the new servers, authentication, and the backup plan all need an owner and a written design. Most engagements are fixed-scope, so the scope, deliverables and timelines are agreed in writing before any work starts. Ask any provider to name the Redshift workloads in scope (which schemas, which BI connections, which stored procedures and UDFs), the chosen pivot path from the three ClickHouse documents, and who signs off on cutover criteria.

A written scope for this migration usually separates the one-time build from the recurring operation. The one-time build covers the schema redesign, the data movement pipeline, query translation and validation against representative data, hardening of access through the ClickHouse access control and external authenticator options, and documentation of the runbooks. Restore testing belongs in that build too, because the ClickHouse backup documentation warns that a backup never test-restored will probably not restore properly. Recurring work covers patching and upgrades, which DeployOpen offers as a retainer, along with continuous testing and restore drills. A retainer lets upgrades follow the changelog review and pre-production checks that ClickHouse recommends, instead of being scheduled ad hoc.

A quote follows from the written scope, so the useful request is a scope document that lists your Redshift clusters, data volumes, query workloads, user groups, compliance obligations and any data residency limits. Ask the provider to state which items are fixed and which are priced as change requests, how acceptance testing will be run, and what evidence will be delivered for your compliance team. DeployOpen prepares systems, controls and evidence for compliance assessments, but it does not issue audit reports or certifications, so ask your auditor which artifacts they expect. DeployOpen is not an official partner or certified provider of ClickHouse Inc. or Amazon Web Services unless that is stated in a separate supplied fact.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.