Repository navigation
Conversation
|
QA tests have started for PR 1628. This patch merges cleanly. |
|
QA results for PR 1628: |
There was a problem hiding this comment.
move mean: Double to next line
|
LGTM except minor inline comments. For the file name, it should be possible to have a package named |
|
In NumPy's source, they had a directory named random: https://github.com/numpy/numpy/tree/master/numpy/random |
|
QA tests have started for PR 1628. This patch merges cleanly. |
|
Yes, having directories is the way to organize packages in python. We can make a folder for |
|
QA results for PR 1628: |
|
QA tests have started for PR 1628. This patch merges cleanly. |
|
QA results for PR 1628: |
There was a problem hiding this comment.
For these tests to run automatically, you also need to add this file into the python/run-tests script. Otherwise it won't automatically discover it, e.g. in Jenkins.
There was a problem hiding this comment.
Yep caught that while looking inside run-tests. Thanks for the reminder.
There was a problem hiding this comment.
Add a doc comment to this package similar to the one on RandomRDDGenerators.scala
|
QA tests have started for PR 1628. This patch merges cleanly. |
|
Btw |
|
QA results for PR 1628: |
|
@dorx I tried |
|
If you can't figure out whether this is possible, consider pinging Josh or Davies too. I'd be surprised if there's no way around this because there are a lot of top-level packages in Python. There's gotta be a way to import our own vs importing theirs. |
|
@mengxr Yeah, that would be okay to use but it turns out that it doesn't solve the
|
|
QA results for PR 1628: |
There was a problem hiding this comment.
We definitely need some comments here to explain what is going on.
and added docs for hacks that allow us to keep the module name mllib.random.
|
QA tests have started for PR 1628. This patch merges cleanly. |
|
LGTM except minor inline comments. |
|
QA tests have started for PR 1628. This patch merges cleanly. |
|
QA results for PR 1628: |
|
QA results for PR 1628: |
|
Merged into master. Thanks!! |
RandomRDDGenerators but without support for randomRDD and randomVectorRDD, which take in arbitrary DistributionGenerator. `randomRDD.py` is named to avoid collision with the built-in Python `random` package. Author: Doris Xin <doris.s.xin@gmail.com> Closes apache#1628 from dorx/pythonRDD and squashes the following commits: 55c6de8 [Doris Xin] review comments. all python units passed. f831d9b [Doris Xin] moved default args logic into PythonMLLibAPI 2d73917 [Doris Xin] fix for linalg.py 8663e6a [Doris Xin] reverting back to a single python file for random f47c481 [Doris Xin] docs update 687aac0 [Doris Xin] add RandomRDDGenerators.py to run-tests 4338f40 [Doris Xin] renamed randomRDD to rand and import as random 29d205e [Doris Xin] created mllib.random package bd2df13 [Doris Xin] typos 07ddff2 [Doris Xin] units passed. 23b2ecd [Doris Xin] WIP
…ut fusion (apache#1669) ### What changes were proposed in this pull request? This regenerates `sql/varka/plans/m8/casts_suites.tsv`, the record of Spark's cast suites under Varka, on current master. It also updates the record's counts in `VARKA-368.md` (now 193 fused, 681 declined). ### Why are the changes needed? Master's post-merge run 45171015126 failed on `8e631d8ed41`. `VarkaCastWithAnsiOffSuite`, `VarkaCastWithAnsiOnSuite` and `VarkaTryCastSuite` aborted in `afterAll`, because their lines in the record moved. apache#1646 added the record. It was generated and tested on a base without apache#1628, and apache#1628 merged before apache#1646. apache#1628 fuses every 64-bit decimal value as a projection output. So 120 lines changed: - A cast to a decimal now declines with "is row 350's" instead of "is row 348's". - Five identity casts of 64-bit decimals now fuse (for example `DECIMAL(10,0)` to `DECIMAL(10,0)`), in all three suites and modes. apache#1652 (also in that run) changes only matrix tooling and plans. ### Does this PR introduce _any_ user-facing change? No. This changes only a generated test record. ### How was this patch tested? - Regenerated with `VARKA_SUITES_REGEN=true build/sbt 'sql/testOnly *VarkaCastWithAnsiOffSuite *VarkaCastWithAnsiOnSuite *VarkaTryCastSuite'`. The 240 changed lines are exactly the lines CI printed. - The three suites then pass without the regen flag: 435 tests, 0 aborted. - `dev/varka_census.py --check` passes. The census changes no other file. `/code-review high` found no bugs and three nits. One round fixed two: the commit message now counts all five newly fused casts, and the plan's counts are updated. The third nit was the commit's placeholder author. It is kept, because the PR is squash-merged. ### Was this patch authored or co-authored using generative AI tooling? Generated-by: Claude Code (Claude Opus 5.5)
RandomRDDGenerators but without support for randomRDD and randomVectorRDD, which take in arbitrary DistributionGenerator.
randomRDD.pyis named to avoid collision with the built-in Pythonrandompackage.