Self-hosted Google BigQuery alternative for EU data sovereignty

If your analytics must stay under your own control in the EU, BigQuery datasets in EU locations still run on Google-operated services. Self-hosted ClickHouse or Trino in an EU data center is the path to full control, with a planned export.

On this page

Why EU data residency alone may not meet a sovereignty requirement for BigQuery

If your organization is an EU public body or a regulated firm that must keep analytics under its own control, EU data residency alone may not meet that requirement. BigQuery datasets can be placed in EU locations, but Google still operates the service, so a self-hosted ClickHouse or Trino deployment in an EU data center is the option to evaluate against your sovereignty requirement. This section explains what the constraint asks for, where a BigQuery dataset in an EU location does and does not meet it based on the transfer rules, and what leaving BigQuery involves. It does not conclude that BigQuery is non-compliant. Whether it satisfies your obligations is a question for your own legal analysis and your data protection officer.

The main issue is who can reach the data, not only where it is stored. Under GDPR Article 44, any transfer of personal data to a third country must meet Chapter V conditions, and EDPB Guidelines 05/2021 treat remote access from a third country, even to display data on a screen for support, as a transfer. Your review should therefore ask Google which personnel and support paths can access your data, from where, and under what contractual terms. Separately, the US CLOUD Act provision at 18 U.S.C. 2713 applies to data in a provider's possession, custody or control regardless of location. Ask counsel to assess that exposure under EDPB Recommendations 01/2020, which says no effective technical supplementary measure can be envisioned where a provider must access data in the clear and the destination's authority powers exceed what is necessary and proportionate.

A self-hosted stack moves those questions into your own controls: a ClickHouse or Trino cluster in an EU data center that you operate, with object storage and catalogs under your administration. Before you commit, confirm what the export involves. BigQuery tables leave through Cloud Storage, and the export tooling and file limits are covered in the export page under this hub. Make an inventory of datasets, keep a record of which tables contain personal data, and plan a restore test of the target platform, since ClickHouse's backup documentation warns that a backup never test-restored will probably not restore properly when needed. Those steps give your legal and security teams evidence to weigh, whatever conclusion they reach about BigQuery.

What EU sovereignty requirements mean for analytics data

Several EU rules apply at once when analytics data is hosted or supported by a provider under foreign control. Together they decide where data may sit, who can see it remotely, and what a foreign authority can compel, so each card below names one rule and the check it leads to.

Transfers include onward transfers

GDPR Article 44 requires every transfer of personal data to a third country to meet the Chapter V conditions, and that includes onward transfers made by a provider or its sub-processors. For BigQuery, this means asking where Google's support staff and sub-processors can access the dataset, not only where the tables are stored. Ask your legal team to map each onward recipient before you accept a dataset location as the answer.

GDPR text

Remote access and storage count as transfers

The EDPB's Guidelines 05/2021 state that remote access from a third country is a transfer, even when staff only display data on a screen for support or administration. They also treat storage in a cloud outside the EEA as a transfer. For analytics, this covers vendor engineers who open a support case, follow-the-sun administration and backup copies held abroad. Confirm which of these paths exist for your contract before you assume an EU region settles the question.

EDPB guidelines

Fines reach four percent of turnover

Infringements of the transfer rules in Articles 44 to 49 fall under the higher fine tier in Article 83(5)(c). The ceiling is EUR 20 million or 4% of worldwide annual turnover, whichever is higher. For a data platform team, the exposure is a compliance problem for the whole organization, not only an IT migration issue. Put the transfer analysis in the same record as the analytics processing register, so the decision can be shown to a regulator.

US reach under the CLOUD Act

18 U.S.C. 2713 requires US electronic communication and remote computing service providers to preserve or disclose data in their possession, custody or control, wherever that data is located. An EU region does not remove this reach from a US-headquartered provider. The EDPB's Recommendations 01/2020 add that where a provider must access data in the clear and foreign authority powers go beyond what is necessary and proportionate, no effective technical supplementary measure can be envisioned. Ask the provider for its legal position in writing and record it.

18 U.S.C. 2713 text

Third-country orders need a treaty basis

Article 48 of the GDPR allows a third-country court judgment or administrative order that requires disclosure of personal data to be recognized or enforced only when it rests on an international agreement in force with the Union or a Member State, such as a mutual legal assistance treaty. A foreign order that lacks such a basis does not become enforceable in the EU through the provider. For your contract, ask how the provider handles such requests, whether it notifies you, and whether it challenges overbroad demands.

GDPR Article 48

Non-personal data under Data Act Article 32

Personal data is not the only concern. Article 32 of the EU Data Act (Regulation (EU) 2023/2854) requires providers of data processing services to take technical, organizational and legal measures to prevent third-country governmental access to non-personal data held in the Union, where that access would conflict with Union or national law. Industrial, operational and telemetry datasets often sit in the same warehouse as personal data. Ask the provider to show which measures apply to non-personal tables.

Data Act text

Where BigQuery meets these requirements and where the question stays open

Choosing an EU dataset location in BigQuery settles where the data is stored, but it does not settle who operates the service or who can receive a lawful access request from a third-country authority. Google still runs the service, so the question for a public body or regulated firm is whether that operating relationship, and the legal exposure that comes with it, fits the controls the organization must show. Under EDPB Guidelines 05/2021, using an EU processor that is subject to third-country law with extraterritorial effect is not in itself a transfer, but complying with a third-country authority's request would be one, so controllers are expected to assess that exposure before engaging such a processor. Storage location is only the first of the two questions.

EDPB Recommendations 01/2020 go further for cases where the cloud provider needs access to data in the clear. Where the destination's public authority powers go beyond what is necessary and proportionate, the EDPB states it cannot envision an effective technical supplementary measure, such as encryption the provider cannot break. The US CLOUD Act provision at 18 U.S.C. 2713 applies regardless of where data is located, and the EU Data Act's Article 32 duty on providers to prevent third-country governmental access to non-personal data is a further factor to read against the provider's actual contract. The Commission's Implementing Decision (EU) 2023/1795 underpins transfers to US organizations on the Data Privacy Framework List, and an appeal in Case C-703/25 P against the General Court's September 2025 judgment is pending. Track that case as a reason to keep a fallback transfer basis documented.

Ask your data protection officer and counsel for a written assessment before any decision. The assessment should cover the transfer analysis for each dataset, the provider's government access commitments and transparency terms, the legal basis relied on today and what changes if the appeal succeeds or fails, and whether the self-hosted option removes the third-country dependency for the datasets in scope. Confirm with Google the current contract terms for support access and where support staff can view data. Treat this as a legal conclusion for your organization to reach, with the answer documented in your records of processing.

Which open-source options fit an EU self-hosted deployment

ClickHouse server is open source under the Apache License 2.0, so the database can run on servers in your own EU data center with no vendor-operated control plane in the data path. It suits dashboards and event analytics, where queries scan large volumes and users expect fast responses. ClickHouse documents a BigQuery migration that exports tables to Cloud Storage and then loads them with the gcs table function.

  • License and residency: Apache-2.0 covers the server code. Data stays on the nodes you place in the EU. Confirm in writing that no vendor or support staff outside the EEA can view data, because remote display of personal data counts as a transfer under the EDPB guidelines.
  • Export path: Export BigQuery tables to a Cloud Storage bucket in the EU, load them with the gcs table function, then delete staging copies once loads are verified.
  • Schema and sort keys: Query speed depends on MergeTree primary keys and partitions chosen for your filters. Plan to redesign BigQuery tables before loading them and test representative queries.
  • Replication and backup: ReplicatedMergeTree tables depend on ClickHouse Keeper, which the replication guide recommends running as at least three nodes on dedicated hosts with about 4 GB of RAM each in production. BACKUP and RESTORE can write to S3-compatible storage, and replication alone does not protect against human error.
  • Authentication: External authenticators include LDAP, Kerberos, SSL X.509 certificates, an HTTP authenticator and JWT.

Check whether your dashboards need low latency on event data, and run a restore test on a spare cluster before you rely on the backup design.

How to deploy ClickHouse or Trino in an EU data center

This sequence takes an EU analytics workload from a hosting decision to a verified cutover, so that the storage, compute, identity and backups sit under the organization's own operation in an EU location.

  1. Confirm the EU site and operator model

    Decide with legal, data protection and security teams which EU data center or sovereign cloud region will hold the data, and who operates the servers, network and storage: your staff, a named EU operator, or a combination. Confirm that backups, logs, support access and any replicas also stay in approved locations, because EDPB Guidelines 05/2021 treat storage outside the EEA and remote viewing from a third country as transfers under GDPR Chapter V. The output is a written location and operator map that your compliance team signs off before any installation begins.

  2. Size compute and object storage

    Estimate the query concurrency, data volume and retention each workload needs, then size ClickHouse servers or the Trino coordinator and workers, together with the object storage that holds Parquet files or Iceberg tables. For Trino, remember that it queries data in place, so object storage and a table catalog such as an Iceberg REST catalog or Hive Metastore are required alongside the engine. Ask your hardware or cloud provider for quotes that list the servers, disks, network links and any support terms separately. The output is a sizing sheet with a named owner and a list of purchased or reserved resources.

  3. Build the ClickHouse Keeper quorum or Trino cluster

    For replicated ClickHouse, deploy ClickHouse Keeper with at least three nodes on dedicated hosts, as the replication guide recommends for production, with about 4 GB of RAM on each node. For Trino, install a 64-bit Linux system with a 64-bit Java 25 runtime (minimum 25.0.1), configure one coordinator plus workers, and use a dedicated coordinator for larger clusters. Teams that prefer containers can follow the Trino Kubernetes guide with Helm. The output is a running quorum or cluster that passes basic health checks from each node.

  4. Configure SSO and access control

    Connect the engine to the identity provider your organization already runs. ClickHouse supports LDAP directories, Kerberos, SSL X.509 certificates, an HTTP authenticator and JWT as external authenticators. Trino documents password file, LDAP, OAuth 2.0, Kerberos, certificates and JWT, with file-based access control, Apache Ranger or Open Policy Agent for authorization. Confirm with your security team which method fits your identity provider, test that disabled accounts lose access, and record the role mapping. The output is a tested login path and a documented role matrix that an auditor can read.

  5. Enable backups to S3-compatible storage

    Configure ClickHouse BACKUP to write full and incremental backups to S3-compatible storage located in the same EU jurisdiction, or to another approved target. Replication alone does not protect against human error or corruption, so backups are a separate control. Schedule them and keep retention aligned with your policy. The output is a backup job log plus a retention setting that your operations team can show on request.

  6. Test restores on a spare cluster

    Restore a recent backup to a spare cluster on a regular schedule and compare row counts and key checksums with the source. The ClickHouse backup documentation warns that a backup never test-restored will probably not restore properly when needed. Record the date, the restored tables and the outcome, and treat a failed restore as an incident. The output is a restore test record that shows the backups can be used, which is the evidence a compliance assessor will ask for.

  7. Pin a supported version and validate in pre-production

    Choose a ClickHouse version listed as supported in the project security policy, and prefer a stable or LTS line that matches your upgrade plan. Install it in a pre-production environment with representative data and queries, and read the changelog before each upgrade because minor backward-incompatible changes can occur. Pin the version in your configuration management so production does not change silently. The output is a version record and a pre-production test report that the change board approves.

  8. Cut over with reconciliation

    Load the exported data, run the BigQuery and new-platform queries side by side, and reconcile row counts, aggregates and sample records for each table before pointing dashboards and pipelines at the new system. Keep the BigQuery datasets read-only until the reconciliation report is signed off, and confirm that the export pipeline and any remaining Google Cloud access are closed under your data processing terms. The output is a signed reconciliation report and a documented cutover date.

What exporting data out of BigQuery involves under this constraint

Exporting from BigQuery writes data to Cloud Storage, the destination this export path uses, so the export is a processing step that your Chapter V records must cover. Before the first job runs, choose a Cloud Storage bucket in an EU location and confirm that the bucket location, and any multi-region setting, keeps objects inside the EEA. The EDPB's guidance treats storage in a cloud outside the EEA as a transfer, so a staging bucket in a non-EU location would create a third-country transfer even if the destination cluster sits in the EU. Confirm the current bucket location options with Google's documentation before you create anything.

Then plan the transfer and the cleanup. Move the exported files to your EU target storage over a path that never stores copies outside the EEA, and check which tools, service accounts and logs touch the files along the way. Remote access from a third country counts as a transfer even when someone only views data on a screen, so confirm that the staff and support engineers who run the export and the import work from the EU or under an approved transfer mechanism. Once ingestion is verified, delete the Cloud Storage objects and any local scratch copies, and record the deletion date and the person who approved it in your processing register.

Format and file layout also affect the work. The export path has a 1 GB per file rule, so large tables become many objects that you must list, checksum and track. Choose Parquet or Avro for each table, and check how nested and repeated fields will map into your target engine before you export. Keep one inventory of datasets, object prefixes, row counts and deletion evidence so an auditor can trace every copy. The export and migration pages in this group cover the step-by-step mechanics, and your legal team should confirm the transfer assessment before production data moves.

How the EU deployment and export path fit together

The path starts in BigQuery, where the dataset's EU location does not decide who operates the service. Tables are exported to a Cloud Storage staging bucket, copied into an object store in your EU environment, and then read by ClickHouse or Trino through an Iceberg catalog inside the EU trust boundary. BI tools and SSO sit on the consuming side. Check that the staging copy is deleted after transfer, that the object store, catalog and admin consoles stay inside the boundary, and that remote support access from outside the EEA is covered by your transfer assessment, since EDPB guidance treats it as a transfer.

Export path from BigQuery into an EU-hosted analytics stack.

What does an EU self-hosted BigQuery replacement cost and take to deliver?

What cost components make up a self-hosted BigQuery replacement?

The bill has several separate parts: servers or Kubernetes capacity for ClickHouse or Trino, object storage and disks, replication and backup copies, implementation and query rewrites, and the staff who operate the system. BigQuery charges per TiB scanned on demand, at $6.25 per TiB after the first 1 TiB each month, or per slot-hour under BigQuery editions, plus storage beyond the first 10 GiB each month, so the comparison is between those usage charges and the infrastructure and people you pay for directly. Ask any quote to show each component on its own line, so you can see which parts scale with data volume and which with query load.

Which costs are one-time and which recur every month?

One-time costs usually include architecture and sizing, initial data export and loading, rewriting GoogleSQL, repointing BI tools and pipelines, security configuration, and the first round of restore testing. Recurring costs include hardware or cloud compute, storage and backup copies, Keeper and replica capacity, software support contracts if you buy them, upgrades, monitoring, and the operations time to keep the platform patched and available. Ask the provider to split its quote into these two groups so you can compare the first year with later years.

What makes the self-hosted cost go up or down?

The main drivers are data volume, how many queries run and how heavy they are, how many replicas you keep for availability, how long backups are retained, and how much of the BigQuery workload you move at once. Schema and sort-key design also matters: a table designed for ClickHouse or Trino often needs fewer resources per query than a direct port. Cost goes down when dashboards and scheduled jobs are tuned, when data is partitioned sensibly, and when you run in an EU data center where you already have capacity. Ask how each driver changes the total, not just the starting figure.

Can our own team run this without outside help?

A team with experience in Linux, networking, database operations and data engineering can build and run ClickHouse or Trino, but the work spans several disciplines at once: cluster design, identity integration, backup and restore testing, upgrades, and evidence for compliance reviews. ClickHouse documents that a backup never test-restored will probably not restore properly, and its production guidance recommends a pre-production environment with representative data before upgrades. Assess your staff against those tasks honestly. Many teams combine internal ownership with an implementation partner for the first build and a retainer for upgrades and testing.

How long does an EU self-hosted BigQuery replacement take to deliver?

No duration is supplied for this work, so no reliable figure can be given here. The timeline depends on how many datasets you move, how much GoogleSQL needs rewriting, whether you use Iceberg tables with Trino, how many BI tools and pipelines depend on BigQuery, and how quickly your hosting site and identity systems are made available. Ask for a scope-based timeline in the written proposal, with milestones for export, loading, query validation, cutover and restore testing. DeployOpen agrees scope, deliverables and timelines in writing before work starts.

What do we need to provide before a fixed-scope quote?

Expect to name data owners for each dataset and their classification, the EU hosting site and network path you intend to use, and the identity provider that will handle single sign-on and group mapping. You will also need an inventory of BigQuery tables, scheduled queries, pipelines and BI dashboards, plus the expected query load and retention rules. To request a fixed-scope quote, send that inventory and the compliance requirements that apply to your organization. DeployOpen does not publish a price list, and a quote follows from the written scope.

Evidence auditors and regulators ask for

An assessment of an EU analytics platform tests whether the transfer picture, the operating records and the export path can be shown on paper as well as in the cluster. The cards below are the artifacts to prepare before the review starts, not certifications, and most of them need to be kept current after go-live.

Transfer map and data flow diagram

A current diagram showing every system that holds or touches personal data, from BigQuery datasets and Cloud Storage export buckets to the ClickHouse or Trino cluster, backups, BI tools and support tooling. Mark each hop with its location and operator. Under the GDPR, storage in a cloud outside the EEA and remote viewing from a third country both count as transfers, so the map must show who can see data on screen as well as where it sits. Check that no monitoring or log shipping path quietly leaves the EU.

EDPB Guidelines 05/2021

Transfer impact assessment for residual exposure

Any remaining third-country link, such as a non-EU vendor for support, a managed backup target or a US-parented hosting provider, needs a documented assessment. Record the legal basis, the supplementary measures and the reasoning for each. Under the CLOUD Act, a US provider may be compelled to disclose data in its control regardless of location, so the assessment should address that exposure directly. Confirm the current status of the Data Privacy Framework appeal with counsel before relying on it.

Decision 2023/1795

Operator and remote access records

Keep a list of every person and service account that can reach the database, the object store and the admin plane, with the location each one connects from. Record SSO or LDAP and Kerberos configuration, role grants and who approved them. Remote administration from outside the EU is a transfer, so access logs should show source regions. Review the ClickHouse access control model and the external authenticator setup as evidence sources, and confirm that audit logging is enabled on both the database and the identity provider.

ClickHouse access control

Backup and restore test records

Replication does not protect against human error or corruption, so auditors will ask for backups and proof they restore. Keep the backup schedule, the storage location in the EU, the encryption setup and the retention period. Most importantly, keep dated restore test results from a spare cluster. ClickHouse documentation warns that a backup never test-restored will probably not restore properly, so a log of successful restores matters more than the backup job itself.

ClickHouse backup docs

Version support and upgrade records

Record the exact ClickHouse or Trino version in production and its security support status on the day of each review. ClickHouse publishes a list of versions that receive security updates, and all others are unsupported. Keep a dated log of upgrades, the changelog review performed before each one and the results of testing on a pre-production environment with representative data. Trino's fault-tolerant execution and Java runtime requirements should also appear in this record.

ClickHouse security policy

Export and deletion logs

During migration, data leaves BigQuery as files in Cloud Storage. Keep extract job records, file manifests with row counts and checksums, and the dates each intermediate copy was loaded and then deleted. Record deletion of the Cloud Storage export buckets and of any staging copies, including confirmation that retention settings and object versioning did not keep extra copies. These logs show where personal data went during the move and when it stopped existing outside the target platform.

How DeployOpen deploys analytics platforms under EU sovereignty constraints

DeployOpen plans, implements, hardens, backs up, documents and supports self-hosted open-source analytics platforms inside your own infrastructure, including EU data centers you select. For EU sovereignty work, the engagement starts with the data flows and legal exposure, then builds the platform to match what your compliance and security teams need to review.

How we scope

  • Map which BigQuery datasets hold personal data, where they sit and who can access them today
  • Agree in writing which EU locations, operators and support paths the target platform will use
  • Define deliverables, timelines and acceptance criteria before any build work starts
  • Confirm with your legal and compliance team how the transfer and access analysis will be documented

How we build

  • Deploy ClickHouse or Trino in your chosen EU data center or cloud account, with access control and audit logging
  • Configure SSO, role-based access and external authentication so administrative access stays under your control
  • Set up replication, Keeper coordination and backups, then run restore tests on a spare environment
  • Test the platform for access paths, credential handling and admin settings before any data moves

How we hand over

  • Deliver architecture, data flow, access and operations documentation that your reviewers can check
  • Export and load tables with a documented checklist covering format, file limits and row-count reconciliation
  • Provide runbooks for upgrades, backup restores and incident response, with a pre-production validation step
  • Prepare the control evidence your compliance team uses, noting that independent auditors issue any formal assessment

How we support

  • Offer ongoing support, upgrades and continuous security testing as a retainer after handover
  • Re-check access, keys and configuration whenever the platform or your data flows change
  • Review new open-source releases and changelogs before you schedule an upgrade in production
  • Retest after fixes so that findings are closed with evidence rather than assumed closed

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.