Commit 9f637b5
[SPARK-51305][SQL][CONNECT] Improve
### 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 <[email protected]>
Signed-off-by: Dongjoon Hyun <[email protected]>SparkConnectPlanExecution.createObservedMetricsResponse
1 parent 9de3b7c commit 9f637b5
File tree
1 file changed
+4
-2
lines changed- sql/connect/server/src/main/scala/org/apache/spark/sql/connect/execution
1 file changed
+4
-2
lines changedLines changed: 4 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
266 | 266 | | |
267 | 267 | | |
268 | 268 | | |
269 | | - | |
270 | | - | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
271 | 273 | | |
272 | 274 | | |
273 | 275 | | |
| |||
0 commit comments