(tab, sort_col)
| 4189 | |
| 4190 | |
| 4191 | def _sort_table(tab, sort_col): |
| 4192 | import pyarrow.compute as pc |
| 4193 | sorted_indices = pc.sort_indices( |
| 4194 | tab, options=pc.SortOptions([(sort_col, 'ascending')])) |
| 4195 | return pc.take(tab, sorted_indices) |
| 4196 | |
| 4197 | |
| 4198 | def _check_dataset_roundtrip(dataset, base_dir, expected_files, sort_col, |
no test coverage detected