Skip to content

[VL] Refactor Velox metrics transport to use JSON payloads#12126

Open
rui-mo wants to merge 1 commit into
apache:mainfrom
rui-mo:wip_metrics_refactor
Open

[VL] Refactor Velox metrics transport to use JSON payloads#12126
rui-mo wants to merge 1 commit into
apache:mainfrom
rui-mo:wip_metrics_refactor

Conversation

@rui-mo
Copy link
Copy Markdown
Contributor

@rui-mo rui-mo commented May 22, 2026

What changes are proposed in this pull request?

  • Refactors Velox metrics transport away from fragile JNI long-array plumbing to a structured JSON payload decoded on the Scala side.
    Replace the long Metrics JNI constructor with a stable metricsJson, numMetrics, veloxToArrow, and taskStats payload.
    Move native metric field mapping and custom runtime metric extraction into MetricsUtil.scala.
    Making future metric additions mostly Scala-side changes.
    Keep C++ responsible only for exporting ordered Velox operator stats and task stats metadata.

  • Adds MetricsFramework.md documentation.

How was this patch tested?

Was this patch authored or co-authored using generative AI tooling?

@github-actions github-actions Bot added the VELOX label May 22, 2026
@rui-mo rui-mo force-pushed the wip_metrics_refactor branch from 8755a20 to f05b72a Compare May 22, 2026 06:03
@github-actions github-actions Bot added the DOCS label May 22, 2026
@rui-mo rui-mo marked this pull request as ready for review May 22, 2026 06:08
@rui-mo rui-mo force-pushed the wip_metrics_refactor branch from f05b72a to ae23dbe Compare May 22, 2026 06:23
@rui-mo rui-mo force-pushed the wip_metrics_refactor branch from ae23dbe to 465e90e Compare May 22, 2026 07:02
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.

1 participant