Skip to content

Spark SQL MERGE INTO that moves a row of a table without a record key gives the row a new row ID #21044

Backlog

Description

@yihua

On a merge-on-read table without a record key in a non-native table format, with hoodie.write.updates.as.deletes.and.inserts enabled, a Spark SQL MERGE INTO that moves a matched row to another partition gives the new version a new row ID. The statement writes the new version with a newly generated record key, so the write cannot pair it with the delete of the old row and carry over the format meta column values the way a keyless UPDATE (#21020) and a global index move (#21021) do.

Keeping the row ID needs the new version to keep the generated record key of the row it replaces, or another way to pair the two records. Raised in review of #21020.

Activity

  1. added
    priority:medium
    area:sql
    type:bug
    area:storage-format
    on Dec 2, 2026
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:sqlarea:storage-formatpriority:mediumtype:bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions