Skip to content

[flink] Complete bounded log splits after filtered batches - #3873

Open
Gezi-lzq wants to merge 1 commit into
apache:mainfrom
Gezi-lzq:codex/fluss-3872-fix
Open

[flink] Complete bounded log splits after filtered batches#3873
Gezi-lzq wants to merge 1 commit into
apache:mainfrom
Gezi-lzq:codex/fluss-3872-fix

Conversation

@Gezi-lzq

@Gezi-lzq Gezi-lzq commented Aug 5, 2026

Copy link
Copy Markdown

Purpose

Linked issue: close #3872

Flink bounded Log Table batch scans can fail to finish when statistics filtering materializes no records even though the scanner has consumed the split through its stopping offset.

Brief change log

  • Use scanner consumed progress to mark bounded log splits finished when a poll contains no materialized records.
  • Keep the existing last-record offset fallback for results without consumed progress.
  • Add a single-bucket statistics-filtered batch regression test.

Tests

  • FlinkSourceSplitReaderTest: 7/7 passed.
  • Flink120TableSourceBatchITCase#testFilteredLogTableBatchScanCompletesWhenNoRecordsMatch: 1/1 passed.
  • Spotless and Checkstyle checks passed for the affected modules.

API and Format

No API or storage format changes.

Documentation

No documentation changes required.

Generative AI disclosure

  • No generative AI tools used
  • Yes (OpenAI Codex)

Use scanner progress to finish bounded log splits when filtering materializes no records. Add a batch regression test for statistics-filtered log tables.

Fixes apache#3872
@Gezi-lzq

Gezi-lzq commented Aug 5, 2026

Copy link
Copy Markdown
Author

Hi @loserwang1024, when you have time, could you please take a look at this PR? Thanks!

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.

[flink] Batch Log Table query does not finish when column statistics filter out all records

1 participant