(df, schema=None)
| 5355 | # Here we simply ensure we validate correctly. |
| 5356 | |
| 5357 | def roundtrip(df, schema=None): |
| 5358 | tab = pa.Table.from_pandas(df, schema=schema) |
| 5359 | tab.validate(full=True) |
| 5360 | # we expect to trigger chunking internally |
| 5361 | # an assertion failure here may just mean this threshold has changed |
| 5362 | num_chunks = tab.column(0).num_chunks |
| 5363 | assert num_chunks > 1 |
| 5364 | tm.assert_frame_equal(tab.to_pandas(self_destruct=True, |
| 5365 | maps_as_pydicts="strict"), df) |
| 5366 | |
| 5367 | x = b"0" * 720000000 |
| 5368 | roundtrip(pd.DataFrame({"strings": [x, x, x]})) |
no test coverage detected