Skip to content

Conversation

@beliefer
Copy link
Contributor

What changes were proposed in this pull request?

This PR proposes to improve the code for createObservedMetricsResponse.

Why are the changes needed?

There exists a duplicate judgement in loop, we should eliminate it.

Does this PR introduce any user-facing change?

'No'.

How was this patch tested?

GA.

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

'No'.

Copy link
Member

@dongjoon-hyun dongjoon-hyun left a comment

Choose a reason for hiding this comment

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

+1, LGTM. Thank you, @beliefer .

@dongjoon-hyun dongjoon-hyun changed the title [SPARK-51305][CONNECT] Improve the code for createObservedMetricsResponse [SPARK-51305][SQL][CONNECT] Improve SparkConnectPlanExecution.createObservedMetricsResponse Feb 24, 2025
dongjoon-hyun pushed a commit that referenced this pull request Feb 24, 2025
…ObservedMetricsResponse`

### What changes were proposed in this pull request?
This PR proposes to improve the code for `createObservedMetricsResponse`.

### Why are the changes needed?
There exists a duplicate judgement in loop, we should eliminate it.

### Does this PR introduce _any_ user-facing change?
'No'.

### How was this patch tested?
GA.

### Was this patch authored or co-authored using generative AI tooling?
'No'.

Closes #50066 from beliefer/SPARK-51305.

Authored-by: beliefer <beliefer@163.com>
Signed-off-by: Dongjoon Hyun <dongjoon@apache.org>
(cherry picked from commit 9f637b5)
Signed-off-by: Dongjoon Hyun <dongjoon@apache.org>
@dongjoon-hyun
Copy link
Member

Merged to master/4.0.

@beliefer
Copy link
Contributor Author

@dongjoon-hyun Thank you !

zifeif2 pushed a commit to zifeif2/spark that referenced this pull request Nov 14, 2025
…ObservedMetricsResponse`

### What changes were proposed in this pull request?
This PR proposes to improve the code for `createObservedMetricsResponse`.

### Why are the changes needed?
There exists a duplicate judgement in loop, we should eliminate it.

### Does this PR introduce _any_ user-facing change?
'No'.

### How was this patch tested?
GA.

### Was this patch authored or co-authored using generative AI tooling?
'No'.

Closes apache#50066 from beliefer/SPARK-51305.

Authored-by: beliefer <beliefer@163.com>
Signed-off-by: Dongjoon Hyun <dongjoon@apache.org>
(cherry picked from commit 6d5b7f3)
Signed-off-by: Dongjoon Hyun <dongjoon@apache.org>
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.

2 participants