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

Method test_empty_rows

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

Source from the content-addressed store, hash-verified

232 assert table.to_pydict() == {'a': [[]]}
233
234 def test_empty_rows(self):
235 rows = b'{}\n{}\n'
236 table = self.read_bytes(rows)
237 schema = pa.schema([])
238 assert table.schema == schema
239 assert table.num_columns == 0
240 assert table.num_rows == 2
241
242 def test_explicit_schema_decimal(self):
243 rows = (b'{"a": 1}\n'

Callers

nothing calls this directly

Calls 2

read_bytesMethod · 0.95
schemaMethod · 0.45

Tested by

no test coverage detected