Skip to content

[FIP-31][lake/iceberg] Store the position index as an Iceberg index once the spec settles #5325

Open

Description

@fresh-borzoni

Search before asking

  • I searched in the issues and found nothing similar.

Description

The position index of FIP-31 has the shape of an Iceberg index extract: key → (file, position) of one snapshot, ordered by a derived bucket(N, pk) and the key. Once the Iceberg index spec (apache/iceberg#16961) settles, store it as an Iceberg index through a PositionIndexStore implementation, with leaders keeping their RocksDB as a cache. That would give:

  • primary key lookups on the table for other engines, and MERGE finding its rows;
  • new positions published by another engine's compaction, so Fluss need not re-index after it;
  • index expiry following the table's snapshot expiry in standard Iceberg tooling;
  • a new or restored cluster loading the index from the table.

A round changes keys across the key space, so either the spec gains delta extracts, or Fluss keeps its changes and publishes extracts as checkpoints.

Builds on #5297 and #5298.

Part of FIP-31 and tracked by #5294.

Willingness to contribute

  • I'm willing to submit a PR!

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