Skip to content
This repository has been archived by the owner on Sep 18, 2023. It is now read-only.

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
zhztheplayer committed Apr 12, 2022
1 parent fddba3e commit 72cab70
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions native-sql-engine/cpp/src/codegen/arrow_compute/ext/sort_kernel.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1450,6 +1450,17 @@ class SortOnekeyKernel : public SortArraysToIndicesKernel::Impl {
}
}
}
#ifdef DEBUG
if (indices_null != nulls_total_) {
std::cout << "Unexpected Sort PartitionNulls state, indices_null: " << indices_null
<< ", nulls_total_: " << nulls_total_ << std::endl;
}
if (indices_i + indices_null != items_total_) {
std::cout << "Unexpected Sort PartitionNulls state, indices_i: " << indices_i
<< ", indices_null: " << indices_null
<< ", items_total_: " << items_total_ << std::endl;
}
#endif
}

int64_t PartitionNaNs(ArrayItemIndexS* indices_begin, ArrayItemIndexS* indices_end) {
Expand Down

0 comments on commit 72cab70

Please sign in to comment.