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