You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[SPARK-44891][PYTHON][CONNECT] Enable Doctests of rand, randn and log
### What changes were proposed in this pull request?
I roughly went thought all the skipped doctests in `pyspark.sql.functions`, and find we can enabled doctests of `rand`, `randn` and `log`, by making them deterministic:
- specify the `numPartitions` in `spark.range` for `rand` `randn`;
- changes the input values for `log`
### Why are the changes needed?
Enable Doctests of `rand`, `randn` and `log`, improve test coverage
### Does this PR introduce _any_ user-facing change?
yes
### How was this patch tested?
enabled doctests
### Was this patch authored or co-authored using generative AI tooling?
No
Closesapache#42584 from zhengruifeng/make_doctest_deterministic.
Authored-by: Ruifeng Zheng <[email protected]>
Signed-off-by: Ruifeng Zheng <[email protected]>
0 commit comments