Skip to content

Expose Substrait execution metadata#6364

Open
alexanderbianchi wants to merge 2 commits intoquickwit-oss:mainfrom
alexanderbianchi:bianchi/better-logging
Open

Expose Substrait execution metadata#6364
alexanderbianchi wants to merge 2 commits intoquickwit-oss:mainfrom
alexanderbianchi:bianchi/better-logging

Conversation

@alexanderbianchi
Copy link
Copy Markdown
Collaborator

@alexanderbianchi alexanderbianchi commented Apr 30, 2026

Summary

Expose a unified DataFusion execution API while preserving the existing stream-only and metadata-bearing wrapper methods.

This keeps SQL/Substrait input, records/explain/explain-analyze output, and metadata collection on one execution path. The returned metadata now exposes post-execution physical-plan metadata: rendered plan text, aggregate DataFusion metrics, per-node metrics, pruning statistics, ratio metrics, stage/task counts, spill/output stats, and timing summaries.

ExplainAnalyze executes the plan to populate runtime metrics, discards result rows, and returns the analyzed plan plus execution statistics as explain output. The existing gRPC/proto surface remains unchanged.

Validation

  • cargo +nightly fmt --all -- --check
  • cargo check -p quickwit-df-core --features grpc
  • cargo clippy -p quickwit-df-core --features grpc -- -D warnings

@alexanderbianchi
Copy link
Copy Markdown
Collaborator Author

@codex review

Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 29a743786d

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread quickwit/quickwit-df-core/src/service.rs Outdated
@alexanderbianchi alexanderbianchi force-pushed the bianchi/better-logging branch 2 times, most recently from 805b5dc to 2b83bc1 Compare April 30, 2026 19:19
@alexanderbianchi alexanderbianchi marked this pull request as ready for review April 30, 2026 19:58
@alexanderbianchi alexanderbianchi force-pushed the bianchi/better-logging branch from e59ec62 to 3748817 Compare May 1, 2026 20:22
@alexanderbianchi alexanderbianchi force-pushed the bianchi/better-logging branch from 3748817 to 6551262 Compare May 3, 2026 13:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants