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

   ### What changes were proposed in this pull request?
   
   This PR aims to support 9 linear regression aggregate functions.
   
   | Function | Since | Description |
   | -------- | ----- | ----------- |
   | `regr_avgx(y, x)` | 3.5.0 | The average of the independent variable for 
non-null pairs |
   | `regr_avgy(y, x)` | 3.5.0 | The average of the dependent variable for 
non-null pairs |
   | `regr_count(y, x)` | 3.5.0 | The number of non-null number pairs |
   | `regr_intercept(y, x)` | 3.5.0 | The intercept of the univariate linear 
regression line |
   | `regr_r2(y, x)` | 3.5.0 | The coefficient of determination |
   | `regr_slope(y, x)` | 3.5.0 | The slope of the linear regression line |
   | `regr_sxx(y, x)` | 3.5.0 | `REGR_COUNT(y, x) * VAR_POP(x)` |
   | `regr_sxy(y, x)` | 3.5.0 | `REGR_COUNT(y, x) * COVAR_POP(y, x)` |
   | `regr_syy(y, x)` | 3.5.0 | `REGR_COUNT(y, x) * VAR_POP(y)` |
   
   All of them take `(y, x)` where `y` is the dependent variable and `x` is the
   independent variable, matching Apache Spark's `functions.scala`.
   
   ### Why are the changes needed?
   
   To provide feature parity with the other Apache Spark clients. These 
functions
   have been available on the server side since Apache Spark 3.5.0, so no 
version
   gate is required.
   
   ### Does this PR introduce _any_ user-facing change?
   
   No, this is a new addition to the API.
   
   ### How was this patch tested?
   
   Pass the CIs with newly added test cases.
   
   ### Was this patch authored or co-authored using generative AI tooling?
   
   Generated-by: Claude Opus 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