szehon-ho opened a new pull request, #60406:
URL: https://github.com/apache/spark/pull/60406

   ### What changes were proposed in this pull request?
   
   Use `withQueryExecutionsCaptured` to capture batch write plans in 
`WriteDistributionAndOrderingSuite` and remove its custom listener.
   
   ### Why are the changes needed?
   
   The custom listener is registered on every write and never unregistered. The 
existing helper unregisters its listener in a finally block, including when a 
write fails. All test cases, configuration combinations, and plan and result 
assertions are retained.
   
   ### Does this PR introduce _any_ user-facing change?
   
   No.
   
   ### How was this patch tested?
   
   `build/sbt "sql/testOnly 
org.apache.spark.sql.connector.WriteDistributionAndOrderingSuite"`
   
   99 tests passed; no failures or skipped tests.
   
   `build/sbt "sql/Test/scalastyle"` passed with zero errors and warnings.
   
   ### Was this patch authored or co-authored using generative AI tooling?
   
   Generated-by: OpenAI Codex (GPT-5)
   


-- 
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