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

Method test_empty_rows

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

Source from the content-addressed store, hash-verified

238 assert table.to_pydict() == {'a': [[]]}
239
240 def test_empty_rows(self):
241 rows = b'{}\n{}\n'
242 table = self.read_bytes(rows)
243 schema = pa.schema([])
244 assert table.schema == schema
245 assert table.num_columns == 0
246 assert table.num_rows == 2
247
248 def test_explicit_schema_decimal(self):
249 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