Skip to content

feat: add read-optimized system table#403

Open
gripleaf wants to merge 1 commit into
alibaba:mainfrom
gripleaf:feat/value_stats_filter
Open

feat: add read-optimized system table#403
gripleaf wants to merge 1 commit into
alibaba:mainfrom
gripleaf:feat/value_stats_filter

Conversation

@gripleaf

@gripleaf gripleaf commented Jul 8, 2026

Copy link
Copy Markdown
Contributor

Purpose

Add support for the read-optimized $ro system table. For primary-key tables, $ro reads only the highest LSM level produced by full compaction and skips merge-on-read across levels. Append-only tables keep the same read behavior as the base table, including streaming reads.

This also refactors read-optimized scan configuration into DataTableBatchScan, uses context builders for $ro scan/read contexts, and documents freshness and value-stats filtering behavior.

Tests

E2E test:

  • SystemTableTest.TestReadOptimizedSystemTableRegistration
  • SystemTableTest.TestReadOptimizedSystemTablePathParsing
  • TableScanTest.TestReadOptimizedPrimaryKeyStreamingScanUnsupported
  • SystemTableReadInteTest.TestReadOptimizedSystemTable
  • SystemTableReadInteTest.TestReadOptimizedAppendOnlySystemTableWithStreamingScan
  • SystemTableReadInteTest.TestReadOptimizedSystemTableWithBranch
  • SystemTableReadInteTest.TestReadOptimizedSystemTableWithFirstRowMergeEngine

API and Format

No public API, storage format, or protocol changes.

Documentation

Added user guide documentation for system tables and the read-optimized $ro system table.

Generative AI tooling

Generated-by: OpenAI Codex GPT-5

@gripleaf gripleaf force-pushed the feat/value_stats_filter branch 3 times, most recently from 7aa2715 to 1449d94 Compare July 8, 2026 09:41
@gripleaf gripleaf marked this pull request as ready for review July 8, 2026 09:45
@gripleaf gripleaf changed the title [WIP] feat: add read-optimized system table feat: add read-optimized system table Jul 8, 2026
@gripleaf gripleaf force-pushed the feat/value_stats_filter branch from 1449d94 to b125cf8 Compare July 9, 2026 06:33
@lxy-9602

lxy-9602 commented Jul 9, 2026

Copy link
Copy Markdown
Collaborator

@suxiaogang223 Would you mind helping take a look when you have time, since you’re most familiar with system table. Thanks a lot!

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.

2 participants