Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Data] Fix doc for read_json #41240

Merged
merged 4 commits into from
Nov 22, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Skip doc test for read_json
Signed-off-by: Cheng Su <[email protected]>
  • Loading branch information
c21 committed Nov 20, 2023
commit 97ab4e60d8a78eb7fb338c9a82490dbe173555f3
7 changes: 1 addition & 6 deletions python/ray/data/read_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -1040,15 +1040,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
c21 marked this conversation as resolved.
Show resolved Hide resolved
... "s3:https://anonymous@ray-example-data/log.json",
... read_options=pajson.ReadOptions(block_size=block_size)
... )
Dataset(
num_blocks=...,
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
Loading