apache-hudi-lakehouse
Skill49 starsChanged 6 months agoMITView on GitHub
Guides agents through Apache Hudi lakehouse design. Use when managing incremental upserts, record-level mutations, timeline behavior, compaction, and Hudi-based lakehouse tables.
In this repository80 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- .github/copilot-instructions.mdCopilot instructions
- .cursor/rules/00-data-agent-core.mdcCursor rule
- .cursor/rules/10-spec-first.mdcCursor rule
- .cursor/rules/20-platform-preset-selector.mdcCursor rule
- .cursor/rules/30-quality-gates.mdcCursor rule
- airflow-and-workflow-orchestrationSkill
- apache-beam-unified-batch-and-streamSkill
- api-and-saas-ingestion-patternsSkill
- avro-protobuf-json-schema-registrySkill
- bigquery-and-dataform-platform-engineeringSkill
- cdc-and-incremental-loadingSkill
- clickhouse-real-time-analyticsSkill
- data-catalog-and-discoverySkill
- data-contract-testing-with-schema-registrySkill
- data-lake-and-zone-architectureSkill
- data-mesh-and-domain-oriented-designSkill
- data-migration-and-platform-cutoverSkill
- data-observability-and-sla-managementSkill
- data-platform-ci-cd-and-release-managementSkill
- data-platform-disaster-recovery-and-business-continuitySkill
- data-platform-operating-model-and-service-ownershipSkill
- dataplex-and-bigquery-governanceSkill
- data-quality-and-contract-testingSkill
- data-quality-platforms-and-rule-managementSkill
- data-reconciliation-and-financial-controlsSkill
- data-resiliency-testing-and-failure-injectionSkill
- data-security-compliance-and-regulated-dataSkill
- data-sharing-and-publishing-contractsSkill
- data-specificationSkill
- dbt-and-analytics-engineeringSkill
- debezium-and-kafka-connect-cdcSkill
- delta-lake-and-medallion-architectureSkill
- duckdb-local-analytics-and-devSkill
- enterprise-etl-and-data-integration-modernizationSkill
- esg-and-sustainability-regulatory-reportingSkill
- etl-elt-and-modernization-strategySkill
- feature-store-and-ml-data-pipelinesSkill
- file-and-partner-feed-ingestionSkill
- glue-data-catalog-and-lake-formation-governanceSkill
- great-expectations-deequ-and-cualleeSkill
- incident-triage-and-pipeline-recoverySkill
- java-data-engineering-and-integration-servicesSkill
- kafka-resilience-and-schema-evolutionSkill
- lakefs-and-data-versioningSkill
- lakehouse-table-format-engineeringSkill
- lineage-pii-and-governanceSkill
- lower-environment-data-masking-and-obfuscationSkill
- mainframe-modernization-and-data-offloadSkill
- master-data-and-entity-resolutionSkill
- mcp-data-observability-integrationSkill
- microsoft-purview-and-azure-data-governanceSkill
- notebook-to-production-hardeningSkill
- openmetadata-datahub-and-openlineageSkill
- operational-datastore-selection-relational-and-nosqlSkill
- orchestration-and-backfillsSkill
- pipeline-planning-and-task-breakdownSkill
- privacy-retention-and-right-to-deleteSkill
- python-data-engineering-and-pipeline-packagingSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
8 rules. About 0 are common, 7 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈7
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 10
Use this skill when Apache Hudi is the primary table layer for incremental lakehouse workloads.
- Distinctive: line 20
Do not use this when the workload is append-only with no mutation requirements and simpler formats like Parquet or Iceberg would suffice.
- Distinctive: line 28
read latency expectations: are readers okay with merge-on-read or do they need read-optimized snapshots?
- Distinctive: line 37
document why the table type was chosen — revisiting later is expensive
- Distinctive: line 50
document how schema changes affect incremental consumers
- Distinctive: line 51
test that consumers handle compaction and rollback instants correctly
- Distinctive: line 65
document backup and restore procedures for critical tables
- Distinctive: line 82
no monitoring of timeline growth, pending compactions, or inflight commits
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Apache Hudi Lakehouse
Overview
Use this skill when Apache Hudi is the primary table layer for incremental lakehouse workloads. It helps agents reason about mutation-heavy patterns, table type selection, compaction behavior, timeline safety, and consumer expectations across read-optimized and real-time query paths.
When to Use
- choosing or operating
Apache Hudifor lakehouse tables - building record-level upsert or delete pipelines
- managing compaction, clustering, and incremental consumption
- supporting lakehouse tables with heavy mutations (CDC sinks, slowly changing dimensions)
- planning multi-engine access (Spark, Presto, Trino, Athena, Hive)
Do not use this when the workload is append-only with no mutation requirements and simpler formats like Parquet or Iceberg would suffice.
Workflow
- Define mutation patterns and read access expectations.
Include:
- primary record key and partition path
- expected operations: inserts, upserts, deletes, or bulk replaces
- read latency expectations: are readers okay with merge-on-read or do they need read-optimized snapshots?
- query engines that must access the table
- expected write throughput and record mutation rate
- Choose the right table type and indexing strategy.
Copy-on-Write (COW): best for read-heavy workloads, produces columnar snapshots on writeMerge-on-Read (MOR): best for write-heavy workloads, defers merge to read time or compaction- choose record index type:
BLOOM,GLOBAL_BLOOM,SIMPLE,BUCKET, orRECORD_INDEX - index choice affects upsert performance and scaling behavior
- document why the table type was chosen — revisiting later is expensive
- Plan compaction and clustering explicitly.
- for MOR tables: compaction converts log files to columnar — it is not optional
- define compaction strategy: synchronous (inline) or asynchronous (scheduled)
- set compaction triggers: by number of commits, time, or log file size
- clustering reorganizes data layout for query performance — plan separately from compaction
- budget compute for compaction and clustering in cost planning
- Design incremental consumption and downstream contracts.
- Hudi supports incremental queries by commit timeline
- define the consumer contract: which commit instant do consumers start from?
- plan for consumer resets and bootstrap reads
- document how schema changes affect incremental consumers
- test that consumers handle compaction and rollback instants correctly
- Handle schema evolution and timeline safety.
- Hudi supports schema evolution but not all changes are safe across readers
- column adds are generally safe; renames and type changes require care
- define compatibility expectations per reader engine
- rollback instants can confuse consumers — document rollback behavior
- archive policy affects timeline visibility for late consumers
- Plan operations, monitoring, and recovery.
- monitor timeline growth, pending compactions, and inflight commits
- alert on compaction backlog and write failures
- plan for rollback: Hudi supports instant-level rollback, but consumers must handle gaps
- define retention and archival for the Hudi timeline
- document backup and restore procedures for critical tables
Common Rationalizations
| Rationalization | Reality |
| "Hudi handles upserts so we don't need to think about keys." | Record key and partition path design determines correctness, performance, and scaling. Wrong keys cause silent data loss or duplication. |
| "MOR is always better because writes are faster." | MOR defers work to compaction and read time. Without compaction planning, read performance degrades unboundedly. |
| "Compaction will just happen in the background." | Compaction requires explicit scheduling, compute budget, and monitoring. Unmanaged compaction leads to reader degradation and timeline bloat. |
| "All query engines see the same data." | COW and MOR tables expose different snapshots to different query types. Read-optimized queries on MOR tables see only compacted data. |
Red Flags
- record key chosen without understanding uniqueness guarantees
- MOR table with no compaction schedule or monitoring
- incremental consumers have no documented starting instant or reset procedure
- schema changes deployed without testing across all reader engines
- no monitoring of timeline growth, pending compactions, or inflight commits
- clustering is never run despite increasing query scan ranges
- rollback behavior is undocumented and consumers assume a linear timeline
- index type is default without analysis of key cardinality and write patterns
Verification
- Record key, partition path, and mutation semantics are explicitly documented
- Table type choice (COW vs MOR) is justified with read/write trade-off analysis
- Compaction is scheduled, monitored, and budgeted for compute cost
- Incremental consumer contracts define starting instants and reset behavior
- Schema evolution paths are tested across all target query engines
- Timeline monitoring covers pending compactions, inflight commits, and archival
- Rollback behavior is documented and consumers handle timeline gaps safely
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

