Skip to content

feat(scan): support file indexes in real-time and PK scans - #370

Merged
SteNicholas merged 3 commits into
apache:mainfrom
lxy-9602:rt-dv-fileindex
Sep 21, 2026
Merged

SteNicholas merged 3 commits into
apache:mainfrom
lxy-9602:rt-dv-fileindex

Conversation

@lxy-9602

@lxy-9602 lxy-9602 commented Sep 17, 2026

Copy link
Copy Markdown
Member

Purpose

Linked issue: #158

This change enables file-index pruning for real-time reads and aligns scan-time index handling across append-only and primary-key tables.

  • Apply embedded and external file indexes in the real-time merge reader.
  • Combine bitmap index selections with deletion vectors for PK tables.
  • Add scan-time pruning with embedded file indexes for both append-only and PK tables.
  • Keep external index evaluation in the reader stage, consistent with Java Paimon.

Tests

  • append-only and PK+DV real-time reads using embedded and external bitmap indexes;
  • scan pruning when min/max statistics retain a file but its embedded bitmap index filters it;
  • reader-stage bitmap filtering when a split is retained;
  • predicate reconstruction after a field rename through schema evolution.

API and Format

Documentation

Generative AI tooling

Generated-by: OpenAI Codex (GPT-5)

Comment thread src/paimon/core/operation/raw_file_split_read.cpp

@zjw1111 zjw1111 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One performance concern in the merge-reader fallback.

Comment thread src/paimon/core/operation/abstract_split_read.cpp

@zjw1111 zjw1111 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1

@SteNicholas SteNicholas left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@SteNicholas
SteNicholas merged commit da24fbd into apache:main Sep 21, 2026
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants