dongjoon-hyun opened a new pull request, #442:
URL: https://github.com/apache/spark-connect-swift/pull/442

   ### What changes were proposed in this pull request?
   
   This PR aims to fix `StreamingQuery.exception()` to return `nil` when the 
query has no exception, by checking the `hasExceptionMessage` accessor of the 
optional proto field like the PySpark client.
   
   ### Why are the changes needed?
   
   Previously, `exception()` always returned a `StreamingQueryException` filled 
with empty strings even when there was no exception, although its return type 
is optional. PySpark and Scala clients return `None`/`null` in that case.
   
   ### Does this PR introduce _any_ user-facing change?
   
   Yes, `StreamingQuery.exception()` now returns `nil` instead of an empty 
`StreamingQueryException` when the query has no exception.
   
   ### How was this patch tested?
   
   Pass the CIs with a newly added test case, `exception()`, in 
`StreamingQueryTests`.
   
   ### Was this patch authored or co-authored using generative AI tooling?
   
   Generated-by: Claude Fable 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