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

Method test_empty_lists

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

Source from the content-addressed store, hash-verified

230 }
231
232 def test_empty_lists(self):
233 # ARROW-10955: Infer list(null)
234 rows = b'{"a": []}'
235 table = self.read_bytes(rows)
236 schema = pa.schema([('a', pa.list_(pa.null()))])
237 assert table.schema == schema
238 assert table.to_pydict() == {'a': [[]]}
239
240 def test_empty_rows(self):
241 rows = b'{}\n{}\n'

Callers

nothing calls this directly

Calls 2

read_bytesMethod · 0.95
schemaMethod · 0.45

Tested by

no test coverage detected