From 8dea520a74a28adaeff742dc35df3d6543684db1 Mon Sep 17 00:00:00 2001 From: Cheng Su Date: Wed, 22 Nov 2023 14:32:11 -0800 Subject: [PATCH] [Data] Fix doc for read_json (#41240) To avoid test becomes flaky that num_blocks can be different in different test infra. Signed-off-by: Cheng Su Co-authored-by: Balaji Veeramani Co-authored-by: Balaji Veeramani --- python/ray/data/read_api.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/python/ray/data/read_api.py b/python/ray/data/read_api.py index 699263d89ee73..9cfe5438a249f 100644 --- a/python/ray/data/read_api.py +++ b/python/ray/data/read_api.py @@ -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://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.