Add lakehouse Delta table detail APIs and over-partitioned table reporting - #1251
Draft
m-kovalsky with Copilot wants to merge 3 commits into
Draft
Add lakehouse Delta table detail APIs and over-partitioned table reporting#1251m-kovalsky with Copilot wants to merge 3 commits into
m-kovalsky with Copilot wants to merge 3 commits into
Conversation
Copilot
AI
changed the title
[WIP] Add function to return Delta table size and partition details
Add lakehouse Delta table detail APIs and over-partitioned table reporting
May 26, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This change adds first-class lakehouse APIs to surface Delta table size, file count, and partition metadata, and introduces a lakehouse-wide report for detecting over-partitioned tables. It addresses the need to quickly identify tables that may require partitioning/optimization adjustments using practical size thresholds.
New Delta table detail API
get_delta_table_details(...)insempy_labs.lakehouse._partitioning.Size In Bytes,Size In GB,FilesPartition Columns,Is PartitionedTable Name,Schema NameNew over-partitioning report API
list_over_partitioned_tables(...)to scan Delta tables in a lakehouse and return only those that breach thresholds.< 1 TB(default1000 GB), or< 1 GB.Partitioning logic consolidation
is_over_partitioned(...)to reuse shared detail-based evaluation logic.Public lakehouse surface update
sempy_labs.lakehouse:is_partitionedlist_partitioned_columnsget_delta_table_detailsis_over_partitionedlist_over_partitioned_tables