(df, schema=None)
| 5290 | # Here we simply ensure we validate correctly. |
| 5291 | |
| 5292 | def roundtrip(df, schema=None): |
| 5293 | tab = pa.Table.from_pandas(df, schema=schema) |
| 5294 | tab.validate(full=True) |
| 5295 | # we expect to trigger chunking internally |
| 5296 | # an assertion failure here may just mean this threshold has changed |
| 5297 | num_chunks = tab.column(0).num_chunks |
| 5298 | assert num_chunks > 1 |
| 5299 | tm.assert_frame_equal(tab.to_pandas(self_destruct=True, |
| 5300 | maps_as_pydicts="strict"), df) |
| 5301 | |
| 5302 | x = b"0" * 720000000 |
| 5303 | roundtrip(pd.DataFrame({"strings": [x, x, x]})) |
no test coverage detected