| 547 | |
| 548 | template <typename ArrayType, SortOrder order> |
| 549 | void ValidateSelectKIndices(const ArrayType& array) { |
| 550 | ValidateOutput(array); |
| 551 | |
| 552 | SelectKCompareForResult<ArrayType, order> compare; |
| 553 | for (uint64_t i = 1; i < static_cast<uint64_t>(array.length()); i++) { |
| 554 | using ArrowType = typename ArrayType::TypeClass; |
| 555 | using GetView = internal::GetViewType<ArrowType>; |
| 556 | |
| 557 | const auto lval = GetView::LogicalValue(array.GetView(i - 1)); |
| 558 | const auto rval = GetView::LogicalValue(array.GetView(i)); |
| 559 | ASSERT_TRUE(compare(lval, rval)); |
| 560 | } |
| 561 | } |
| 562 | // Base class for testing against random chunked array. |
| 563 | template <typename Type, SortOrder order> |
| 564 | struct TestSelectKWithChunkedArrayRandomBase : public ::testing::Test { |
nothing calls this directly
no test coverage detected