Skip to content

Single-field ComplexKeyGenerator tables duplicate records on branch-0.x across the 0.14.1 key encoding change #20199

Open

Description

@ad1happy2go

For a `ComplexKeyGenerator` with one record key field, `_hoodie_record_key` is `field:value` when written by 0.14.0 and older and the bare `value` when written by 0.14.1, 0.15.0 and 1.0.0 to 1.0.2 (HUDI-7001). On `branch-0.x` the writer cannot tell which one a table stores: a validation guard refuses every write to such a table by default, and with the guard disabled the writer keys records with `hoodie.write.complex.keygen.new.encoding` (default `field:value`), so every upsert into a table written by 0.14.1 inserts duplicates.

Proposal: port #19304 to `branch-0.x`, recording the table's encoding as `hoodie.table.complex.keygenerator.encoding` and keying every write with it.

Activity

  1. added
    priority:high
    type:bug
    area:writer
    on Oct 5, 2026
  2. ad1happy2go commented on Oct 5, 2026

    @ad1happy2go
    CollaboratorAuthor

    Fix in #20200.

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

    area:writerpriority:hightype:bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions