Skip to content

spike(hudi): go/no-go for Python-native Hudi sink using hudi-rs 0.6.0 #1465

Open

Description

@malon64

Goal — feasibility only, no public sink yet

Apache's hudi-rs 0.6.0 (2026-11-03) adds native Python writes (pip install hudi), including create, append, upsert and overwrite. Evaluate Hudi as a third open-table destination after Iceberg and Delta, in Floe's single-node Polars ingestion architecture, without adding its dependency/config options to the released runtime yet.

Sources:

Scope

  • Isolated proof of concept in spikes/hudi/ or scripts/spikes/ with optional install instructions: Floe-style Polars DataFrame → Arrow stream/capsule → Hudi Python writer; prove this avoids a JVM/Spark dependency.
  • Test local Copy-on-Write Hudi create/append/overwrite with typed schema and partitioned/unpartitioned table; read it back using Hudi or compatible reader (ideally Spark/Trino if available) to verify interoperability.
  • Test upsert semantics against a composite primary key (SCD1 feasibility), and separately explore Merge-on-Read table behavior, compaction and deletion. Do not claim SCD2 without an explicit design.
  • Compare with existing Floe ingestion guarantees: per-file validation, rejected rows, commit failure/abort, retry after crash before and after Hudi commit, duplicate batches, metadata/index maintenance, schema evolution.
  • Validate S3-compatible behavior separately from local POC; identify Python wheel and Arrow/Polars ABI/version constraints, unsupported Hudi table versions/layouts, and writer concurrency across processes. hudi-rs serializes writes in a process; this is NOT an inter-process locking guarantee.
  • Record measured RSS, throughput, on-disk layout, maintenance obligations and operational prerequisites.

Exit criteria

  • Small reproducible isolated Python example with test data and a working read-back.
  • Explicit capability matrix: append, overwrite, upsert, delete, partitioning, schema evolution, local vs S3, CoW vs MoR, concurrent writes, retry identity.
  • Go/no-go recommendation for a Floe Hudi accepted sink; must identify blocker bugs and support-matrix gaps.
  • If go, open separate sink integration issues (config/schema, writer, runtime dispatch, conformance, docs). No Hudi support claims in README yet.

Non-goals

No new 1.1 YAML keys or dependency, no acceptance that all Hudi write modes are production-ready, no DuckDB sink, no custom JVM service, no schema contract change without maintainer review.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions