BigQuery ELT Schema
NEMESIS_FORENSICS
Partitioned by block_timestamp & cluster_id
Dataform Transformation
Incremental Assertions
Zero-null checks on tx hashes & 100% address integrity
Lakehouse Federation
Apache Iceberg / D1
Direct query federation over Cloudflare R2 storage

Canonical Forensic Table DDL (BigQuery SQL)

CREATE TABLE IF NOT EXISTS `nemesis_dw.forensic_transactions` (
 tx_hash STRING NOT NULL,
 chain STRING NOT NULL,
 block_height INT64 NOT NULL,
 block_timestamp TIMESTAMP NOT NULL,
 source_address STRING NOT NULL,
 target_address STRING NOT NULL,
 asset_symbol STRING NOT NULL,
 amount_native NUMERIC NOT NULL,
 amount_usd NUMERIC NOT NULL,
 attribution_entity STRING,
 threat_cluster_id STRING,
 is_illicit_flag BOOL DEFAULT FALSE
)
PARTITION BY DATE(block_timestamp)
CLUSTER BY chain, threat_cluster_id, source_address;

Dataform SQLX Incremental Definition

config {
 type: "incremental",
 schema: "nemesis_analytics",
 tags: ["forensics", "threat_matrix"],
 uniqueKey: ["tx_hash"]
}

SELECT
 raw.tx_hash,
 raw.chain,
 raw.source_address,
 raw.target_address,
 actor.name AS threat_actor_name,
 actor.risk_rating,
 CURRENT_TIMESTAMP() AS ingested_at
FROM ${ref("raw_transactions")} AS raw
LEFT JOIN ${ref("threat_actors_matrix")} AS actor
 ON LOWER(raw.source_address) = LOWER(actor.wallet_address)
WHERE raw.block_timestamp >= TIMESTAMP_SUB(CURRENT_TIMESTAMP(), INTERVAL 24 HOUR);

Interactive Schema & Pipeline Engine Validator

Verify DDL constraints, execute incremental assertions, and benchmark edge query latency

ENGINE READY
// Ready. Select a validation test above to execute live schema analysis.