Skip to content

Databricks: live storage sizes (override catalog.json) #9

Description

@tasozgurcem11

Summary

Query live Unity Catalog storage metrics on scan so dead-asset ranking does not depend on a fresh dbt docs generate (like Snowflake and Redshift today).

Context

In #3, table_storage() for Databricks is deferred and returns {}. Ranking uses catalog.json bytes from dbt docs generate — same fallback pattern as BigQuery when live INFORMATION_SCHEMA.TABLE_STORAGE is unavailable due to permissions.

Snowflake and Redshift overwrite catalog sizes each scan; Databricks does not yet.

Open questions

  • Best source: system.information_schema.tables, table properties, or another UC API
  • Permissions, query cost, and latency at project scale.
  • Whether live bytes should include only active storage or a breakdown (if UC exposes one).

Proposed approach

  1. Spike live storage query against a real catalog/schema.
  2. Implement table_storage() + SQL builder + parser reuse from jobs.parse_table_storage_rows if column shape matches.
  3. Update cli.py to fetch live storage for Databricks when implemented.
  4. Tests, docs, and note any permission requirements in USAGE.md.

Related

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    Status
    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions