Skip to content

Commit

Permalink
[Data] Fix doc for read_json (#41240)
Browse files Browse the repository at this point in the history
To avoid test becomes flaky that num_blocks can be different in different test infra.

Signed-off-by: Cheng Su <[email protected]>
Co-authored-by: Balaji Veeramani <[email protected]>
Co-authored-by: Balaji Veeramani <[email protected]>
  • Loading branch information
3 people committed Nov 22, 2023
1 parent 19c4b78 commit 8dea520
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions python/ray/data/read_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -1048,11 +1048,10 @@ def read_json(
>>> import pyarrow.json as pajson
>>> block_size = 10 << 20 # Set block size to 10MB
>>> ray.data.read_json(
>>> ray.data.read_json( # doctest: +SKIP
... "s3:https://anonymous@ray-example-data/log.json",
... read_options=pajson.ReadOptions(block_size=block_size)
... )
Dataset(num_blocks=8, num_rows=1, schema={timestamp: timestamp[s], size: int64})
Args:
paths: A single file or directory, or a list of file or directory paths.
Expand Down

0 comments on commit 8dea520

Please sign in to comment.