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

   ### What changes were proposed in this pull request?
   
   This PR aims to support typed `StreamingQueryProgress` in 
`StreamingQuery.lastProgress` and `recentProgress`.
   
   - `lastProgress` now returns `StreamingQueryProgress?` (previously 
`String?`) and `recentProgress` returns `[StreamingQueryProgress]` (previously 
`[String]`).
   - The unused internal structs in `StreamingQueryManager.swift` are moved to 
a new file `StreamingQueryProgress.swift` and promoted to public `Sendable` and 
`Codable` types: `StreamingQueryProgress` (renamed from the typo 
`StreamingQueryProcess`), `SourceProgress`, `SinkProgress`, and 
`StateOperatorProgress`.
   - JSON decoding is lenient like the Scala/PySpark clients: unknown fields 
are ignored, missing fields fall back to defaults, and offset fields preserve 
arbitrary JSON as strings. The original JSON remains accessible via the `json` 
property.
   
   ### Why are the changes needed?
   
   For feature parity with the Scala and PySpark clients which return typed 
`StreamingQueryProgress` objects.
   
   ### Does this PR introduce _any_ user-facing change?
   
   Yes, `lastProgress` and `recentProgress` now return typed values instead of 
raw JSON strings. The raw JSON is still available via the `json` property.
   
   ### How was this patch tested?
   
   Pass the CIs with the newly added unit tests.
   
   ### 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