dahhs opened a new pull request, #59504:
URL: https://github.com/apache/spark/pull/59504

   ### What changes were proposed in this pull request?
   
   Add a unit test to `python/pyspark/pipelines/tests/test_spark_connect.py` 
verifying that `handle_pipeline_events()` raises `PySparkValueError` when a 
dictionary response contains neither `pipeline_command_result` nor 
`pipeline_event_result`.
   
   ### Why are the changes needed?
   
   Existing tests cover unsupported response types but not dictionary responses 
containing neither `pipeline_command_result` nor `pipeline_event_result`.
   
   
   ### Does this PR introduce _any_ user-facing change?
   
   No.
   
   ### How was this patch tested?
   
   Added a unit test verifying that `handle_pipeline_events()` rejects 
dictionary responses missing pipeline result fields.
   
   Ran the test suite successfully:
   
   ```bash
   python/run-tests \
     --python-executables=python \
     --testnames pyspark.pipelines.tests.test_spark_connect
   ```
   
   Ran the suite with coverage and confirmed that the missing-result error 
branch is covered:
   
   ```bash
   python/run-tests-with-coverage \
     --python-executables=python \
     --testnames pyspark.pipelines.tests.test_spark_connect
   ```
   
   ### Was this patch authored or co-authored using generative AI tooling?
   
   Generated-by: OpenAI Codex (6.1 Sol), used as a pair-programming assistant.


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