Skip to content

Commit 134c7c9

Browse files
committed
Update [doc]tests to include new sharding.read.* values
1 parent c0eedee commit 134c7c9

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

docs/user-guide/config.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,4 +88,6 @@ This is the current default configuration::
8888
'default_zarr_format': 3,
8989
'json_indent': 2,
9090
'ndbuffer': 'zarr.core.buffer.cpu.NDBuffer',
91+
'sharding': {'read': {'coalesce_max_bytes': 104857600,
92+
'coalesce_max_gap_bytes': 1048576}},
9193
'threading': {'max_workers': None}}

tests/test_config.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,13 +103,21 @@ def test_config_defaults_set() -> None:
103103
"vlen-utf8": "zarr.codecs.vlen_utf8.VLenUTF8Codec",
104104
"vlen-bytes": "zarr.codecs.vlen_utf8.VLenBytesCodec",
105105
},
106+
"sharding": {
107+
"read": {
108+
"coalesce_max_bytes": 104857600, # 100 MiB
109+
"coalesce_max_gap_bytes": 1048576, # 1 MiB
110+
},
111+
},
106112
}
107113
]
108114
assert config.get("array.order") == "C"
109115
assert config.get("async.concurrency") == 10
110116
assert config.get("async.timeout") is None
111117
assert config.get("codec_pipeline.batch_size") == 1
112118
assert config.get("json_indent") == 2
119+
assert config.get("sharding.read.coalesce_max_bytes") == 100 * 2**20 # 100 MiB
120+
assert config.get("sharding.read.coalesce_max_gap_bytes") == 2**20 # 1 MiB
113121

114122

115123
@pytest.mark.parametrize(

0 commit comments

Comments
 (0)