# GCP Bigquery

> GCP BigQuery: Dremel and Capacitor

- Skill: `j4flmao/gcp-bigquery` (Agent Skill)
- Install (CLI): `npx skillmds@latest add j4flmao/gcp-bigquery`
- Raw SKILL.md: https://api.skillmd.com/api/skills/j4flmao/gcp-bigquery/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: DevOps & Infra
- Author: j4flmao (https://skillmd.com/u/j4flmao)
- Updated: 2026-09-21
- Page: https://skillmd.com/skills/j4flmao/gcp-bigquery

---

# GCP BigQuery: Dremel and Capacitor

BigQuery separates compute and storage. The execution engine, Dremel, uses a multi-level execution tree. A root server receives the query, rewrites it, and distributes it to intermediate servers, which then distribute it to leaf nodes (workers) that scan the data.

Data is stored in Colossus using the Capacitor columnar format. Capacitor optimizes data access by utilizing advanced encoding (e.g., dictionary encoding, run-length encoding) and maintaining statistical metadata. This metadata allows Dremel workers to prune unnecessary blocks without reading them.

```mermaid
%%{init: {"theme": "default", "flowchart": {"useMaxWidth": true}}}%%
flowchart TD
    subgraph EngineDremelEngine ["Dremel Engine<br><br><br>"]
        A[Root Server] -->|"Distribute()"| B[Intermediate Server]
        B -->|"Scan()"| C[Leaf Worker]
    end
    subgraph StorageCapacitorStorage ["Capacitor Storage<br><br><br>"]
        C -->|"ReadColumn()"| D[Capacitor File]
    end
```

