About Skills Projects Blog Contact View my CV ↗ Español
The modern data analytics stack in 2026: from giant Excel files to the AI-powered lakehouse

The modern data analytics stack in 2026: from giant Excel files to the AI-powered lakehouse

Informative guide to the 2026 data stack: DuckDB, Polars, Iceberg, Parquet, AI, log observability, and how to read large files fast.

By Omar Flores
Table of Contents

Ten years ago, a company’s data stack was a data warehouse, a nightly ETL, and a dashboard that refreshed the next day. Five years ago, it was Snowflake or BigQuery, dbt, and Looker. Today, in 2026, the stack looks less like a tower of tools and more like an ecosystem: Parquet files in object storage, engines that query directly from your laptop, open table formats, and AI agents that write SQL against a semantic layer.

The change is not only technological. It is economic: storing is cheap, moving data is expensive, and querying where the data lives is the new normal. The question is no longer “which warehouse do I choose?” but “which format, which engine, and which context does my team need to answer questions without copying data everywhere?”


Where we came from: the stack that no longer scales

The classic stack had one virtue: everything was in one place. And one defect: to analyze anything, you first had to move it. Extract from the source, transform in a warehouse, model in dbt, visualize in BI. Every step added latency, cost, and an opportunity to break something.

Symptoms that this stack is falling short:

  • The data team spends more time maintaining pipelines than answering questions.
  • Warehouse cost grows faster than usage.
  • Large files (logs, Excel, CSV, Parquet) live outside the warehouse and are analyzed with ad hoc scripts.
  • AI cannot answer questions because it lacks reliable, governed context and access.
  • Every new tool adds a new integration, and nobody knows the source of truth.

In 2026, the consensus is different: cheap, open storage; ephemeral compute close to the data; governed context; and agents as the interface.


The new consensus: lakehouse, open formats, and separated compute

Three ideas hold up the modern stack.

1. The lakehouse ate the warehouse

A lakehouse combines the flexibility of a data lake (files in S3, GCS, Azure Blob) with the guarantees of a warehouse (transactions, schema, time travel). The piece that makes it possible is open table formats: Apache Iceberg, Delta Lake, and Apache Hudi.

With Iceberg or Delta, a Parquet file stops being “a file” and becomes “a table” with schema, versions, partitions, and metadata. Multiple engines can read and write the same table without copying it. That breaks the warehouse monopoly and lets you choose the engine per workload: Spark for heavy ETL, Trino for federated SQL, DuckDB for local analysis, Snowflake or Databricks for governed workloads.

2. Compute and storage separate

Storage lives in object storage, which is cheap and durable. Compute turns on when needed and off when done. That allows a different engine for each task without duplicating data.

In practice, the pattern is:

S3 / GCS / Azure Blob
  └── Parquet + Iceberg/Delta
        ├── DuckDB (local, ad hoc analysis)
        ├── Polars (Python ETL, streaming)
        ├── Trino/ClickHouse (interactive SQL, logs)
        ├── Spark (massive processing)
        └── Snowflake/Databricks (governance, BI, ML)

3. Local-first analytics

DuckDB and Polars did something that seemed impossible: analyze gigabytes on a laptop with the comfort of SQL or DataFrames. You do not need a cluster for a 5 GB dataset. You do not need to upload a CSV to a warehouse to run a GROUP BY.

That changed the workflow: explore locally, validate the model, and only then publish the result to the governed platform. Less friction, less cost, faster iteration.


The minimum 2026 stack

You do not need all these tools. You need one per layer, and only if it solves a real problem.

Layer Typical tools What for
Storage S3, GCS, Azure Blob, MinIO Store files and tables cheaply
File format Parquet, Arrow IPC, ORC Columnar, compressed, typed data
Table format Iceberg, Delta Lake, Hudi Tables with transactions, versions, schema
Local engine DuckDB, Polars Laptop analysis, small/medium ETL
SQL engine ClickHouse, Trino, BigQuery, Snowflake Interactive and analytical queries
Processing Spark, Flink, Polars streaming Massive ETL, streaming, batch
Transformation dbt, SQLMesh Modeling, tests, lineage
Orchestration Airflow, Dagster, Prefect Scheduling, dependencies, observability
Catalog and governance DataHub, OpenMetadata, Unity, Polaris Discovery, lineage, permissions
Quality dbt tests, Great Expectations, Soda Contracts, validations, alerts
Observability OpenTelemetry, ClickHouse, Grafana Logs, metrics, traces
AI LLMs + semantic layer + MCP Natural-language questions, agents

The rule: start with the format and the engine, not the trendy tool. If your data is in Parquet and your engine is DuckDB or Polars, you already have 80% of the modern stack. The rest is added when the team needs it.


Formats: the silent contract of your data

Parquet: the default format

Parquet is columnar, compressed, and typed. It stores statistics per row group (min, max, nulls) that let engines skip entire blocks. It is the de facto format for analytics on object storage.

Tips:

  • Use Zstd compression for analytical data; Gzip is slower to decompress.
  • Aim for 100-500 MB files; very small files create metadata overhead, very large ones limit parallelism.
  • Sort by the column you filter most (date, service, tenant) so row-group pruning works.
  • Partition by low-cardinality columns (date=2026-12-05/service=api), not by unique IDs.

Arrow: the in-memory format

Arrow is the columnar format in memory. Polars, DuckDB, pandas 2.0, and many engines use it to share data without copies. If two tools speak Arrow, conversion is almost free.

Iceberg, Delta, and Hudi: the tables

Table formats add metadata on top of Parquet:

  • Iceberg: the most adopted for its engine independence and schema evolution. Iceberg 1.12 consolidated REST catalogs and multi-engine support.
  • Delta Lake: mature in the Databricks/Spark ecosystem, with time travel and constraints.
  • Hudi: strong in incremental ingestion and upserts.

The decision is not “which is better,” but “which engines need to write to the table.” If you only read with DuckDB and Polars, a partitioned Parquet directory is enough. If you need concurrent writes, schema evolution, and time travel, you need a table format.

Lance: the format that is coming

Lance is a columnar format oriented toward machine learning data: embeddings, images, vector columns, and versioning. It does not replace Parquet for traditional analytics, but it solves the problem of storing and querying vectors alongside metadata without a separate vector store. In 2026 it is starting to appear in RAG and semantic search pipelines.


Engines: DuckDB, Polars, ClickHouse, Spark, and Trino

DuckDB 2.0: embedded analytical SQL

DuckDB is an in-process analytical database. No server, no cluster, no configuration. You read Parquet, CSV, or JSON and query with SQL.

Version 2.0 LTS (“Cinnamon Teal”, October 2026) brought:

  • Quack protocol: client-server communication, to share a DuckDB database between processes.
  • Asynchronous I/O for Parquet and CSV, key for reading from S3.
  • VARIANT type for semi-structured data.
  • New SQL parser and v2.0 storage.
  • Lakehouse partitioning optimizations.
import duckdb

result = duckdb.sql("""
    SELECT service, count(*) AS errors
    FROM read_parquet('s3://logs/date=2026-12-05/*.parquet')
    WHERE level = 'ERROR'
    GROUP BY service
    ORDER BY errors DESC
    LIMIT 10
""").df()

DuckDB applies predicate and projection pushdown: if you only query service and level, it does not read the other columns. If files are sorted by level, it can skip entire row groups.

Polars 2.0: Rust DataFrames with streaming

Polars is the pandas alternative for data that does not fit in memory. Version 2.0 (2026) brings:

  • Streaming and out-of-core by default for sort, window functions, and many expressions.
  • First-class SQL.
  • Map type for dictionaries.
  • Optimizer improvements: join reordering, common subplan elimination, dynamic predicates.
import polars as pl

result = (
    pl.scan_parquet("s3://logs/date=2026-12-05/*.parquet")
    .filter(pl.col("level") == "ERROR")
    .group_by("service")
    .agg(pl.len().alias("errors"))
    .sort("errors", descending=True)
    .head(10)
    .collect(engine="streaming")
)

The difference from pandas is not only speed: Polars forces you to write the query as a plan, and the optimizer does the rest.

ClickHouse: the engine for logs and observability

ClickHouse is a columnar database oriented toward real-time analytics. In 2026 it consolidated as a unified observability backend: logs, metrics, and traces in a single table, queryable with SQL.

Advantages:

  • Aggressive compression (vendors claim up to 10x less storage than Elasticsearch; measure it in your case).
  • Aggregation queries over high cardinality in subseconds.
  • Native OpenTelemetry integration.
  • Tiering to object storage for long retention.

For logs, the winning pattern is wide events: one event with many attributes (service, trace_id, user_id, status, duration, error) instead of free-text logs. That lets you filter and aggregate without regex.

Spark 4.x: the batch workhorse

Spark remains the engine for massive processing and ETL. Spark 4.x brings performance improvements, native Arrow, and more mature table-format support. It is not the tool for exploring 5 GB on a laptop, but it is for processing terabytes in a cluster.

Trino: federated SQL

Trino queries data where it lives: S3, Iceberg, PostgreSQL, ClickHouse, Kafka. It is useful when you have a heterogeneous ecosystem and want a single SQL layer without moving data. The cost is operational: maintaining a Trino cluster is not free.

Which one to choose?

Situation Engine
Analyze 1-50 GB on your machine DuckDB or Polars
Python ETL with data > RAM Polars streaming
Logs and real-time observability ClickHouse
Lakehouse with multiple engines Iceberg + Trino/Spark
Governed, shared BI Snowflake, Databricks, BigQuery
TB-scale batch processing Spark

How to read large files and logs without drowning the machine

Rule 1: never read CSV if you can read Parquet

CSV is text: every value must be parsed, it has no types or statistics, and it takes 5-10x more space. Parquet is columnar: you read only the columns you need and the engine can skip blocks.

# Once
df = pl.read_csv("logs.csv")
df.write_parquet("logs.parquet", compression="zstd")

# Always after
lf = pl.scan_parquet("logs.parquet")

Rule 2: filter and project at read time

result = (
    pl.scan_parquet("logs/*.parquet")
    .select("timestamp", "service", "level", "duration_ms")
    .filter(pl.col("level") == "ERROR")
    .collect(engine="streaming")
)

select and filter are applied before materializing. The engine reads only what is necessary.

Rule 3: partition by time and service

logs/
  date=2026-12-05/
    service=api/
      part-000.parquet
    service=worker/
      part-000.parquet

With partitions, a query for one day and one service reads a fraction of the dataset. Without partitions, it reads everything.

Rule 4: sort by the column you filter

If 90% of your queries filter by timestamp, sort files by timestamp before writing them. Row groups with min/max will let you skip blocks.

Rule 5: use streaming for data that does not fit

result = query.collect(engine="streaming")

In DuckDB:

SET threads = 8;
SET memory_limit = '8GB';
SET preserve_insertion_order = false;

preserve_insertion_order = false lets DuckDB reorder and reduce memory in large aggregations.

Rule 6: logs as wide events, not text

{
  "timestamp": "2026-12-05T10:00:00Z",
  "service": "checkout",
  "level": "ERROR",
  "trace_id": "abc123",
  "user_id": "u-42",
  "duration_ms": 1834,
  "error": "timeout",
  "endpoint": "/pay"
}

A structured log is filtered with level = 'ERROR' and grouped by service. A free-text log requires regex and luck.

Rule 7: separate hot and cold

  • Hot: last 7-30 days in ClickHouse for fast queries.
  • Cold: history in Parquet + S3, queryable with DuckDB when needed.
  • Archive: legal retention in object storage with lifecycle rules.

Rule 8: measure before optimizing

EXPLAIN ANALYZE
SELECT ...

In DuckDB, EXPLAIN ANALYZE tells you which operator consumes time. In Polars, explain() shows the optimized plan. Without measuring, you optimize blind.


AI in the stack: semantic layer, MCP, and agents

AI in data analysis went from “chat with your data” to “agent that investigates.” But the hype hides a problem: an LLM connected to raw tables guesses what columns mean, and guesses wrong.

Text-to-SQL: useful for exploration, dangerous for decisions

2026 benchmarks show enormous improvement: models write SQL much better than two years ago. But they also show accuracy depends on context. Over raw tables and ambiguous questions, the success rate can stay around 50-65%. With a semantic layer, dbt Labs benchmarks report up to 98-100% on questions within the model’s scope.

The lesson: the problem is not SQL, it is meaning.

Semantic layer: the contract of metrics

A semantic layer defines metrics, dimensions, joins, and permissions in one place. The agent does not write SQL from scratch: it selects certified metrics and the engine compiles the query.

Tools: dbt Semantic Layer/MetricFlow, Cube, Snowflake Cortex Analyst, Databricks Genie, Looker. In 2026, many expose their metrics through MCP, so any agent (Claude, Cursor, a custom agent) can discover and use them.

MCP: the USB-C of agents

MCP (Model Context Protocol) standardizes how an agent discovers and uses tools and data. In the data stack it is used to:

  • Expose a semantic layer as tools (list_metrics, query_metrics).
  • Connect a warehouse or catalog with permissions.
  • Give the agent access to logs, traces, and documentation.

MCP solves connection, not meaning. An MCP server pointed at raw tables is a faster route to the same wrong answers. Quality still depends on the governed context behind it.

Agents: what works today

  • Assisted exploration: the agent proposes queries, you validate.
  • Documentation and lineage: the agent explains what a model does and where data comes from.
  • Quality: the agent detects anomalies and opens a ticket with context.
  • Operations: the agent diagnoses a broken pipeline and proposes a fix.

What still does not work without supervision: business decisions, production schema changes, and queries without governance.


Configurations and tips that actually move the needle

Python: uv, not pip

uv init data-stack
cd data-stack
uv add duckdb polars pyarrow

uv resolves dependencies in seconds and caches downloads. In data projects with many libraries, the difference is brutal.

DuckDB: less memory, more speed

SET threads = 8;
SET memory_limit = '8GB';
SET preserve_insertion_order = false;
SET enable_progress_bar = true;

To read remote Parquet:

INSTALL httpfs;
LOAD httpfs;
SET s3_region = 'us-east-1';

Polars: always lazy

lf = pl.scan_parquet("data/*.parquet")
result = lf.filter(...).group_by(...).agg(...).collect(engine="streaming")

Avoid read_parquet if you will chain more than two operations. Avoid map_elements; use expressions.

Parquet: Zstd and reasonable row groups

df.write_parquet(
    "data.parquet",
    compression="zstd",
    row_group_size=100_000,
)

A row group of 100k-500k rows is usually a good balance between compression and pruning.

Object storage: lifecycle

  • Standard for hot data.
  • Infrequent Access for 30-90 days.
  • Glacier/Archive for long retention.
  • Delete what is unused; cheap storage still costs money.

Catalog and contracts

  • Register every table in a catalog (DataHub, OpenMetadata, Unity, Polaris).
  • Define data contracts for critical tables: schema, owner, SLA, semantics.
  • Version schema changes like you version code.

Observability

  • OpenTelemetry for logs, metrics, and traces.
  • A backend that lets you correlate all three signals (ClickHouse, Grafana).
  • Alerts on freshness, volume, and schema, not only on errors.

The future: what is coming and what is hype

What is coming strong

  1. Lakehouse with open formats: Iceberg and Delta consolidate; the warehouse stops being the center.
  2. Local-first analytics: DuckDB and Polars keep gaining ground in exploration and medium ETL.
  3. Agentic pipelines: agents that write, test, and fix pipelines with supervision.
  4. Semantic layer as AI context: governed metrics become the interface between agents and the business.
  5. MCP as the integration standard: one server, many agents.
  6. Unified observability: logs, metrics, and traces in a single columnar engine.
  7. Data contracts and quality at ingestion: prevent before correcting.
  8. Data FinOps: measure cost per query, per table, and per team.
  9. Formats for ML: Lance, Iceberg with vector columns, lightweight feature stores.
  10. Consolidation: fewer tools, more interoperability.

What is more hype than reality

  • “AI replaces the analyst”: it replaces tasks, not judgment. Someone has to define what “revenue” means and validate the result.
  • “You only need an LLM and your tables”: without a semantic layer or governance, it is a factory of plausible, false answers.
  • “The warehouse is dead”: it is not dead; it is no longer the only place where data lives.
  • “Everything must be real time”: most decisions do not need second-level latency; they need correct data.
  • “More tools = more modern”: the modern stack is the simplest one that solves your problem.

How to start depending on your size

Team of 1-5 people

  • Parquet in S3/MinIO.
  • DuckDB for ad hoc SQL.
  • Polars for Python ETL.
  • dbt or SQLMesh for modeling.
  • A simple orchestrator (cron, Dagster, Prefect).
  • No dedicated warehouse until it hurts.

Team of 5-50 people

  • Lakehouse with Iceberg or Delta.
  • Trino or ClickHouse for interactive SQL.
  • dbt + catalog (DataHub/OpenMetadata).
  • Airflow/Dagster for orchestration.
  • Data contracts for critical tables.
  • Semantic layer for shared metrics.

Large company

  • Governed lakehouse (Databricks, Snowflake, BigQuery).
  • Central catalog and lineage.
  • Multiple engines per workload.
  • Data observability platform.
  • FinOps and chargeback per team.
  • Agentic analytics with semantic layer and MCP, always with permissions and audit.

Common mistakes

  1. Choosing the tool before the format. If your data is in CSV, no engine will save you.
  2. Copying data everywhere. Every copy is a source of inconsistency and cost.
  3. Ignoring partitioning. A one-day query should not read a year.
  4. Using free-text logs. Structure at the source; regex filtering is expensive and fragile.
  5. Trusting text-to-SQL without a semantic layer. The model guesses the business; you pay for the error.
  6. Not measuring costs. The modern stack can be cheap or very expensive; the difference is visibility.
  7. Adopting the whole stack at once. Start with Parquet + DuckDB/Polars and grow when the problem demands it.
  8. Not documenting metrics. Without shared definitions, every team computes a different number.

The modern stack is not about having more tools. It is about having less friction between the question and the answer. When data is in an open format, the engine fits the job, and the context is governed, AI stops being a chatbot and starts being a junior analyst that never sleeps. But it still needs a senior who tells it what to ask.