[pull] master from ClickHouse:master#2171
Merged
pull[bot] merged 24 commits intoMu-L:masterfrom Nov 6, 2025
Merged
Conversation
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
Update README.md
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
Fix query slot release logic
Docs: add version introduced to `generateSerialID` documentation
Fix escaping in json docs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 : )