Skip to content

feat!: show index segment count and size - #774

Open
ddupg wants to merge 1 commit into
lance-format:mainfrom
ddupg:feat/ddu-356-show-index-segment-stats
Open

feat!: show index segment count and size#774
ddupg wants to merge 1 commit into
lance-format:mainfrom
ddupg:feat/ddu-356-show-index-segment-stats

Conversation

@ddupg

@ddupg ddupg commented Aug 20, 2026

Copy link
Copy Markdown
Contributor

What changed

  • Add segment_count and total_size_bytes to SHOW INDEXES.
  • Return NULL for total size when any segment size is missing.

Tests

  • ./mvnw test -pl lance-spark-3.5_2.12 -am -Dtest=ShowIndexesExecTest,ShowIndexesTest -Dsurefire.failIfNoSpecifiedTests=false
  • ./mvnw test -pl lance-spark-3.5_2.13 -am -Dtest=ShowIndexesExecTest,ShowIndexesTest -Dsurefire.failIfNoSpecifiedTests=false
  • ./mvnw spotless:check

@github-actions github-actions Bot added the enhancement New feature or request label Aug 20, 2026
@ddupg
ddupg marked this pull request as ready for review August 20, 2026 13:13
lance-gatekeeper[bot]

This comment was marked as outdated.

@lance-gatekeeper lance-gatekeeper Bot added the K-approved Latest Gatekeeper recommendation permits acceptance. label Aug 20, 2026
@ddupg
ddupg force-pushed the feat/ddu-356-show-index-segment-stats branch from 737e330 to 1c75fad Compare August 24, 2026 06:08
@ddupg ddupg changed the title feat: show index segment count and size feat!: show index segment count and size Aug 24, 2026
@github-actions github-actions Bot added the breaking-change Features that introduces a breaking API change label Aug 24, 2026
@lance-gatekeeper lance-gatekeeper Bot removed the K-approved Latest Gatekeeper recommendation permits acceptance. label Aug 24, 2026

@lance-gatekeeper lance-gatekeeper Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Gate recommendation: approve.

The implementation preserves one logical row per index, reports the physical-segment count, and returns NULL instead of a partial total when any segment lacks size metadata. It remains a thin aggregation over the existing Lance metadata path, with documentation and real multi-segment coverage matching the new schema.

@lance-gatekeeper lance-gatekeeper Bot added K-approved Latest Gatekeeper recommendation permits acceptance. and removed K-approved Latest Gatekeeper recommendation permits acceptance. labels Aug 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

breaking-change Features that introduces a breaking API change enhancement New feature or request K-approved Latest Gatekeeper recommendation permits acceptance.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant