What is data virtualization?
Data virtualization is an approach that gives users and tools one place to query data from many systems, through virtual tables and views that are computed from the sources at query time. The data is not copied. The layer stores definitions, access rules and sometimes cached results.
What the virtual layer adds
Underneath, data virtualization runs federated queries: one statement, several sources. What makes it virtualization is the layer on top, which is the part the people querying actually see.
| Part | What it does |
|---|---|
| Connectors | Read each source in its own protocol and SQL dialect |
| Virtual views | Give data business names and hide which system holds it |
| Query planner | Splits each query and pushes filters to the sources |
| Access control | One set of permissions in front of every source |
| Metadata | Descriptions, units, joins and metric definitions, kept in one place |
| Cache | Keeps the results of slow or popular views, at the price of freshness |
The point of the views is independence. A report built on a view called segment_revenue keeps working when the orders table moves from the application database to the lake. Only the view's definition changes.
A virtual view in DuckDB
A view in DuckDB stores a query, not data. This one joins the two sources built in the data federation example, a CRM database in SQLite with 1,000 customers and a Parquet file of 1 million orders. Next to it sits a copy of the same result, the way a pipeline would load it.
ATTACH 'crm.db' AS crm (TYPE sqlite); -- A virtual view: only the definition is stored CREATE VIEW segment_revenue AS SELECT c.segment, count(*) AS orders, sum(o.amount) AS revenue FROM 'orders.parquet' o JOIN crm.customers c ON c.id = o.customer_id GROUP BY c.segment; -- A copy of the same result CREATE TABLE segment_revenue_copy AS SELECT * FROM segment_revenue; -- The CRM reclassifies one customer UPDATE crm.customers SET segment = 'enterprise' WHERE id = 7; SELECT * FROM segment_revenue WHERE segment = 'enterprise'; SELECT * FROM segment_revenue_copy WHERE segment = 'enterprise';
The view returns 101,410 enterprise orders and 10,163,658.65 in revenue. The copy still says 100,090 and 10,027,912.85, the figures from before customer 7 and its 1,320 orders changed segment, and it stays wrong until the next load. The price is time: the view reads both sources on every call, about 10 ms here, and the copy answers in about 1 ms. On a billion rows or a slow source, that ratio is the argument for a cache or a copy.
Data virtualization vs ETL
| Data virtualization | ETL or ELT into a warehouse | |
|---|---|---|
| Data moved | None; read at query time | Copied on a schedule |
| Freshness | Current as of the query | As of the last run |
| Changing a definition | Edit a view | Change a pipeline, often with a backfill |
| Query speed | Depends on the sources and on pushdown | Predictable; the data is local and columnar |
| Load on the sources | Every query | One extract per run |
| History | Not kept | Kept, if the pipeline keeps it |
| Good for | Operational reporting, exploration, many small sources | Heavy analytics, history, expensive transformations |
The two are complements more than rivals. Many teams put virtual views over the sources first and move only the slow or heavy ones into a pipeline; see ELT vs ETL. Zero-ETL is a newer label for much of the same idea.
Data virtualization vs data federation
Data federation is the mechanism: an engine answers one query from several sources. Data virtualization is the product category built around it, adding the modelled views, security and caching that let people who don't know the sources use them. Vendors often use the two words for the same thing.
Limits
- Speed is bounded by the sources. A view over a busy transactional database is only as fast as that database allows; see OLAP vs OLTP.
- Stacked views hide cost. A short SELECT on a view built on other views can fan out into scans of several production systems.
- Caching brings staleness back. Once a view is cached, someone has to know which views are cached and how old each one is.
- Availability multiplies. A view over three sources fails when any one of them is down.
- Permissions exist twice. Rules in the layer have to agree with the rules in each source.
Data virtualization tools
Dedicated platforms include Denodo, TIBCO Data Virtualization and IBM Data Virtualization. Query engines such as Trino, Starburst and Dremio provide federation with catalogs, views and access control on top. Cloud warehouses reach outward with external tables and federated queries. DuckDB covers the federation part in a single process, with views as plain SQL.
In Thunderduck
Thunderduck is a query engine, not a virtualization suite, but it covers much of the layer described above. Catalogs connect PostgreSQL, MySQL, SQL Server, Oracle, BigQuery, ClickHouse, MongoDB, Google Sheets, Iceberg and object storage, and queries read them in place with filters pushed to the source.
Access is set by roles, down to a table or a column, and applies whichever source the data comes from. An AI assistant connected over MCP signs in as the person and sees only what that person can see. Each column carries a description, a role and a unit, inferred from names, types and keys and corrected by people, next to declared joins and measures.
When reading a source live is too slow or too heavy for it, the alternative is explicit: CREATE TABLE ... AS SELECT copies the data into an Iceberg catalog, and a scheduled job or dbt pipeline keeps it current.
Docs: https://docs.thunderduck.ai/reference/access/