You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by "dongjoon-hyun (via GitHub)" <gi...@apache.org> on 2026/06/07 22:36:30 UTC
[PR] [SPARK-57308] Support `stat.approxQuantile` for `DataFrame` [spark-connect-swift]
dongjoon-hyun opened a new pull request, #410:
URL: https://github.com/apache/spark-connect-swift/pull/410
### What changes were proposed in this pull request?
This PR aims to support `approxQuantile` for `DataFrame` by wiring the
`StatApproxQuantile` Spark Connect relation through `DataFrameStatFunctions`,
exposed via `DataFrame.stat` like PySpark/Scala.
```swift
public func approxQuantile(_ col: String, _ probabilities: [Double], _ relativeError: Double) async throws -> [Double]
public func approxQuantile(_ cols: [String], _ probabilities: [Double], _ relativeError: Double) async throws -> [[Double]]
```
### Why are the changes needed?
To improve API coverage by mirroring PySpark/Scala `DataFrameStatFunctions`.
### Does this PR introduce _any_ user-facing change?
Yes, this PR adds a new API, `DataFrame.stat.approxQuantile`.
### How was this patch tested?
Pass the CIs with a newly added test in `DataFrameStatFunctionsTests`.
### Was this patch authored or co-authored using generative AI tooling?
Generated-by: Claude Code (Claude Opus 4.8)
--
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: reviews-unsubscribe@spark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
Re: [PR] [SPARK-57308] Support `stat.approxQuantile` for `DataFrame` [spark-connect-swift]
Posted by "dongjoon-hyun (via GitHub)" <gi...@apache.org>.
dongjoon-hyun closed pull request #410: [SPARK-57308] Support `stat.approxQuantile` for `DataFrame`
URL: https://github.com/apache/spark-connect-swift/pull/410
--
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: reviews-unsubscribe@spark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
Re: [PR] [SPARK-57308] Support `stat.approxQuantile` for `DataFrame` [spark-connect-swift]
Posted by "dongjoon-hyun (via GitHub)" <gi...@apache.org>.
dongjoon-hyun commented on PR #410:
URL: https://github.com/apache/spark-connect-swift/pull/410#issuecomment-4644819515
Merged to main
--
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: reviews-unsubscribe@spark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
Re: [PR] [SPARK-57308] Support `stat.approxQuantile` for `DataFrame` [spark-connect-swift]
Posted by "dongjoon-hyun (via GitHub)" <gi...@apache.org>.
dongjoon-hyun commented on PR #410:
URL: https://github.com/apache/spark-connect-swift/pull/410#issuecomment-4644817170
Thank you, @viirya !
--
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: reviews-unsubscribe@spark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org