MCPcopy Create free account
hub / github.com/ClickHouse/ClickHouse / stableGetPermutation

Function stableGetPermutation

src/Interpreters/sortBlock.cpp:379–389  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

377}
378
379void stableGetPermutation(const Block & block, const SortDescription & description, IColumn::Permutation & out_permutation)
380{
381 if (block.empty())
382 return;
383
384 getBlockSortPermutationImpl(block, description, IColumn::PermutationSortStability::Stable, 0, out_permutation);
385
386#ifndef NDEBUG
387 checkSortedWithPermutation(block, description, 0, out_permutation);
388#endif
389}
390
391bool isAlreadySorted(const Block & block, const SortDescription & description)
392{

Callers 4

writeTempPartImplMethod · 0.85
prepareMainChunkMethod · 0.85

Calls 3

emptyMethod · 0.45

Tested by

no test coverage detected