Skip to content

fix(delta): preserve scan metrics during serialization - #23

Closed
radustoenescu wants to merge 2 commits into
main-1.0-statsfrom
fix/explain-analyze-planning-metrics
Closed

radustoenescu wants to merge 2 commits into
main-1.0-statsfrom
fix/explain-analyze-planning-metrics

Conversation

@radustoenescu

@radustoenescu radustoenescu commented Sep 24, 2026 •

Copy link
Copy Markdown
Collaborator

Serialize each scan's existing metric set with the physical plan instead of maintaining metric-specific fields. This covers classic, next, and metadata-only scans.

Validated with codec round trips and Cobweb's two-worker distributed EXPLAIN ANALYZE regression.

@github-actions

Copy link
Copy Markdown

ACTION NEEDED

delta-rs follows the Conventional Commits specification for release automation.

The PR title and description are used as the merge commit message. Please update your PR title and description to match the specification.

file_id_column: Option<String>,
public_file_ids: std::collections::HashMap<String, String>,
#[serde(default)]
count_files_scanned: usize,

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

  1. let's use the already existing mechanics for storing and serializing metrics, in case we want to add/remove others.
  2. these are the metrics from the old provider (DeltaScan, metrics=[files_pruned=77, files_scanned=224]). The new provider actually exposes these DeltaScanExec, metrics=[output_rows=161, elapsed_compute=50.84µs, output_bytes=167.4 MB, output_batches=2, count_files_pruned_by_limit=0, count_files_scanned=3]

@radustoenescu radustoenescu changed the title [HSTACK] Preserve Delta scan planning metrics fix(delta): preserve scan metrics during serialization Sep 25, 2026
@radustoenescu
radustoenescu force-pushed the fix/explain-analyze-planning-metrics branch from d826b1f to df9e568 Compare September 25, 2026 12:27
@adragomir adragomir closed this Sep 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants