MCPcopy Create free account
hub / github.com/apache/arrow / test_empty_lists

Method test_empty_lists

python/pyarrow/tests/test_json.py:226–232  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

224 }
225
226 def test_empty_lists(self):
227 # ARROW-10955: Infer list(null)
228 rows = b'{"a": []}'
229 table = self.read_bytes(rows)
230 schema = pa.schema([('a', pa.list_(pa.null()))])
231 assert table.schema == schema
232 assert table.to_pydict() == {'a': [[]]}
233
234 def test_empty_rows(self):
235 rows = b'{}\n{}\n'

Callers

nothing calls this directly

Calls 2

read_bytesMethod · 0.95
schemaMethod · 0.45

Tested by

no test coverage detected