Repository navigation
Conversation
rok
force-pushed
the
gh-47255-random-array-generator
branch
4 times, most recently
from
December 3, 2026 12:11
df04121 to
40e0437
Compare
Member
Author
|
@egolearner would you be interested to review this? |
rok
force-pushed
the
gh-47255-random-array-generator
branch
from
December 3, 2026 14:13
40e0437 to
58b65a8
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Rationale for this change
Allow running PyArrow tests without NumPy by exposing Arrow's C++
RandomArrayGeneratorfor test data generation instead of relying onnumpy.random.What changes are included in this PR?
arrow/testing/random.{h,cc}from GTest and move it intolibarrow.pyarrow.testing.RandomArrayGenerator(array_of,batch_of,table_of) with Python-side argument validation._test_table/_test_dataframe(parquet/common.py) and autil.random_arraytest helper, and remove 18 obsolete@pytest.mark.numpymarkers acrossparquet,feather,io, andjsontests.Open questions for reviewers (related to #33538, #38748):
testing/random.ccintolibarrowacceptable, or should this stay internal/separate?Are these changes tested?
Yes — ran C++
arrow-random-test(and verifiedlibarrowhas no GTest linkage), added NumPy-free Python tests (test_testing.py), and verified all 18 unmarked tests pass withnumpyblocked.Are there any user-facing changes?
Adds an experimental
pyarrow.testingmodule.Was AI used for this PR?
PR code and description written by:
Reviewed before submission by: