AlejandroMorgante commented on code in PR #60248:
URL: https://github.com/apache/spark/pull/60248#discussion_r4528001263
##########
python/pyspark/sql/connect/dataframe.py:
##########
@@ -1796,6 +1796,15 @@ def approxQuantile(
"arg_type": type(p).__name__,
},
)
+ if p < 0 or p > 1:
Review Comment:
Done -- extracted the validation into
`validate_approx_quantile_probabilities` in pyspark/sql/utils.py, shared by
classic and Connect.
--
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]