()
| 207 | |
| 208 | |
| 209 | def test_chunked_array_slice(): |
| 210 | data = [ |
| 211 | pa.array([1, 2, 3]), |
| 212 | pa.array([4, 5, 6]) |
| 213 | ] |
| 214 | data = pa.chunked_array(data) |
| 215 | |
| 216 | data_slice = data.slice(len(data)) |
| 217 | assert data_slice.type == data.type |
| 218 | assert data_slice.to_pylist() == [] |
| 219 | |
| 220 | data_slice = data.slice(len(data) + 10) |
| 221 | assert data_slice.type == data.type |
| 222 | assert data_slice.to_pylist() == [] |
| 223 | |
| 224 | table = pa.Table.from_arrays([data], names=["a"]) |
| 225 | table_slice = table.slice(len(table)) |
| 226 | assert len(table_slice) == 0 |
| 227 | |
| 228 | table = pa.Table.from_arrays([data], names=["a"]) |
| 229 | table_slice = table.slice(len(table) + 10) |
| 230 | assert len(table_slice) == 0 |
| 231 | |
| 232 | |
| 233 | def test_chunked_array_iter(): |
nothing calls this directly
no test coverage detected