buraksenn opened a new pull request, #24689:
URL: https://github.com/apache/datafusion/pull/24689

   ## Which issue does this PR close?
   
   - Closes N/A
   
   ## Rationale for this change
   
   `EXPLAIN ANALYZE` on a `PiecewiseMergeJoin` always reports `join_time=0` 
and, for classic joins, `output_rows=0` / `output_bytes=0.0 B`, so PWMJ plans 
can't be profiled like other joins.
   
   ## What changes are included in this PR?
   
   - Classic stream: time probe-phase work under `join_time` (started only 
after the streamed input's poll returns `Ready`) and record output metrics via 
`record_poll`
   - Existence stream: same `join_time` coverage for the scan and final pass
   - `elapsed_compute` picks both up via the existing `BuildProbeJoinMetrics` 
drop
   
   ## Are these changes tested?
   
   Yes. Classic tests now assert `assert_join_metrics!`, the existence 
final-pass test pins `join_time > 0`, and a new test verifies `join_time` 
excludes streamed-input wait. `explain_analyze.slt` shows the real 
`output_bytes`.
   
   ## Are there any user-facing changes?
   
   No (PWMJ is experimental and off by default).
   
   🤖 Generated with [Claude Code](https://claude.com/claude-code)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to