mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-22 23:52:03 +00:00
enable RadixSort for ASOF JOIN over UInt32
This commit is contained in:
parent
4192deb5ad
commit
7697b18b07
@ -82,12 +82,15 @@ private:
|
||||
std::lock_guard<std::mutex> l(lock);
|
||||
if (!sorted.load(std::memory_order_relaxed))
|
||||
{
|
||||
#if 0 /// TODO: Check correctness + pref test for 32/64 bits.
|
||||
if (!array.empty())
|
||||
radixSort<_Entry, _Key>(&array[0], array.size());
|
||||
#else
|
||||
std::sort(array.begin(), array.end());
|
||||
#endif
|
||||
/// TODO: It has been tested only for UInt32 yet. It needs to check UInt64, Float32/64.
|
||||
if constexpr (std::is_same_v<_Key, UInt32>)
|
||||
{
|
||||
if (!array.empty())
|
||||
radixSort<_Entry, _Key>(&array[0], array.size());
|
||||
}
|
||||
else
|
||||
std::sort(array.begin(), array.end());
|
||||
|
||||
sorted.store(true, std::memory_order_release);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user