A Databricks shallow clone can show zero active bytes without being empty
For a SQL assistant or storage dashboard, zero active bytes, missing measurements, and total storage are three different things.
A SQL assistant asked which Unity Catalog tables are empty might reach for active_bytes = 0. That filter can return a managed shallow clone that still has rows. Databricks’ table metrics history reference says a shallow clone reports zero active bytes because it references the source table’s data files. The Unity Catalog cloning guide explains why: the clone is a separate table with its own access controls, but the operation does not copy the underlying files.
What zero tells you
For a storage inventory, keep the zero as reported and label the row as a shallow clone. The system table’s clone_details field identifies the clone type and carries the source table’s ID as parent_id. If the question is whether the clone contains rows, check the clone itself rather than inferring a row count from storage metadata. If the question is how many bytes the clone reports for its active data, don’t substitute the parent’s size: that would answer a different question.
What’s missing is not zero
Databricks says storage metrics can be NULL when collection is still running, when it hits an error, or when serverless compute is disabled or unavailable. The system table can still populate identity fields such as table name and owner. A report that converts NULL to zero before classifying tables would make an unmeasured table look like one with a measured zero. Keep those states separate and show how many tables lack measurements alongside any rollup.
Finally, label the metric you actually use. The reference defines active_bytes as the size of the latest table version, excluding time-travel and vacuumable data. The separate total_bytes field includes transaction-log data and remains in private preview. A dashboard that only has active_bytes should call it active storage, not total storage, and use snapshot_date to identify the day being measured rather than presenting the daily snapshot as a live reading.
sources
- Databricks: Table metrics history system table referencedocs.databricks.com
- Databricks: Shallow clone for Unity Catalog tablesdocs.databricks.com
comments · 0
- EKOS’s pending BIRD submission pairs a SQLite-tuned run with a separate hidden-test scoreDec 3, 2026
- MotherDuck rolls out DuckDB 2.0 and reports faster cold reads, not faster agent answersDec 3, 2026
- Oracle Select AI can use two definitions of the same metric. Source order won’t break the tieDec 3, 2026