Skip to content

[Bug] Wrong unreferenced files metrics #16

Description

@kimfrie

Bug: All files incorrectly reported as unreferenced

Problem

unreferenced_files contains ALL data files instead of only orphaned files.

Root Cause

Path format mismatch in delta_lake.rs ~line 55:

  • Delta log stores relative paths: partition_key=2026-01-01/part-xxx.parquet
  • Comparison uses full S3 keys: some/s3/prefix/partition_key=2026-01-01/part-xxx.parquet

HashSet::contains() requires exact equality, so these never match.

Fix

Normalize paths before comparison - strip prefix from S3 key OR prepend prefix to Delta log paths.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions