| 61 | namespace engine { |
| 62 | |
| 63 | Result<std::shared_ptr<Table>> SortTableOnAllFields(const std::shared_ptr<Table>& tab) { |
| 64 | std::vector<SortKey> sort_keys; |
| 65 | for (int i = 0; i < tab->num_columns(); i++) { |
| 66 | sort_keys.emplace_back(i); |
| 67 | } |
| 68 | ARROW_ASSIGN_OR_RAISE(auto sort_ids, SortIndices(tab, SortOptions(sort_keys))); |
| 69 | ARROW_ASSIGN_OR_RAISE(auto tab_sorted, Take(tab, sort_ids)); |
| 70 | return tab_sorted.table(); |
| 71 | } |
| 72 | |
| 73 | void AssertTablesEqualIgnoringOrder(const std::shared_ptr<Table>& exp, |
| 74 | const std::shared_ptr<Table>& act) { |
nothing calls this directly
no test coverage detected