Skip to content

[pull] master from ClickHouse:master#2171

Merged
pull[bot] merged 24 commits intoMu-L:masterfrom
ClickHouse:master
Nov 6, 2025
Merged

[pull] master from ClickHouse:master#2171
pull[bot] merged 24 commits intoMu-L:masterfrom
ClickHouse:master

Conversation

@pull
Copy link
Copy Markdown

@pull pull bot commented Nov 6, 2025

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.4)

Can you help keep this open source service alive? 💖 Please sponsor : )

tombokombo and others added 24 commits August 24, 2025 22:07
Mark Context::releaseQuerySlot() as const to fix clang-tidy
I noticed that this is one of the major contributors to
MemoryAllocatedWithoutCheck:

    :) select arrayStringConcat(symbols, '\n'), sum(size), count(), sum(size)/count() from trace_log_3407706798345528581 where toYYYYMM(event_date) = 202509 and trace_type = 'MemoryAllocatedWithoutCheck' group by all order by 2 limit -5\G
    Row 5:
    ──────
    arrayStringConcat(symbols, '\n'): StackTrace::StackTrace()
    incrementAllocationWithoutCheck(long)
    MemoryTracker::allocImpl(long, bool, MemoryTracker*, double)
    MemoryTracker::allocImpl(long, bool, MemoryTracker*, double)
    MemoryTracker::allocImpl(long, bool, MemoryTracker*, double)
    CurrentMemoryTracker::allocImpl(long, bool)
    operator new(unsigned long)
    DB::LazyOutput::buildOutputFromBlocksLimitAndOffset(std::__1::vector<COW<DB::IColumn>::mutable_ptr<DB::IColumn>, std::__1::allocator<COW<DB::IColumn>::mutable_ptr<DB::IColumn>>>&, unsigned long const*, unsigned long const*, unsigned long, unsigned long) const
    DB::generateBlock(std::__1::unique_ptr<DB::HashJoinResult::GenerateCurrentRowState, std::__1::default_delete<DB::HashJoinResult::GenerateCurrentRowState>>&, DB::PODArray<char8_t, 4096ul, Allocator<false, false>, 63ul, 64ul> const&, DB::LazyOutput const&, DB::HashJoinResult::Properties const&)
    DB::HashJoinResult::next()
    DB::JoiningTransform::readExecute(DB::Chunk&)
    DB::JoiningTransform::transform(DB::Chunk&)
    DB::JoiningTransform::work()
    DB::ExecutionThreadContext::executeTask()
    DB::PipelineExecutor::executeStepImpl(unsigned long, DB::IAcquiredSlot*, std::__1::atomic<bool>*)
    DB::PipelineExecutor::executeSingleThread(unsigned long, DB::IAcquiredSlot*)
    DB::PipelineExecutor::executeImpl(unsigned long, bool)
    DB::PipelineExecutor::execute(unsigned long, bool)
    void std::__1::__function::__policy_invoker<void ()>::__call_impl[abi:se190107]<std::__1::__function::__default_alloc_func<ThreadFromGlobalPoolImpl<true, true>::ThreadFromGlobalPoolImpl<DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'(), void ()>>(std::__1::__function::__policy_storage const*)
    ThreadPoolImpl<std::__1::thread>::ThreadFromThreadPool::worker()
    void* std::__1::__thread_proxy[abi:se190107]<std::__1::tuple<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_delete<std::__1::__thread_struct>>, void (ThreadPoolImpl<std::__1::thread>::ThreadFromThreadPool::*)(), ThreadPoolImpl<std::__1::thread>::ThreadFromThreadPool*>>(void*)

    sum(size):                        46713843640832 -- 46.71 trillion
    count():                          77856
    divide(sum(size), count()):       600003129.377723 -- 600.00 million
Support `CREATE OR REPLACE` syntax for temporary tables
…ory-tracker

Use allocator that respects MemoryTracker in LazyOutput of HashJoin
Fix Bug: aarch64 ubuntu not using vdso but syscalls
Docs: add version introduced to `generateSerialID` documentation
@pull pull bot locked and limited conversation to collaborators Nov 6, 2025
@pull pull bot added the ⤵️ pull label Nov 6, 2025
@pull pull bot merged commit c0ab7d2 into Mu-L:master Nov 6, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

10 participants