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

Function applyQueryLimit

src/Processors/QueryPlan/numbersLikeUtils.cpp:48–55  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

46}
47
48void applyQueryLimit(std::optional<UInt64> & effective_limit, const std::optional<size_t> & query_limit)
49{
50 if (!query_limit)
51 return;
52
53 const UInt64 query_limit_64 = static_cast<UInt64>(*query_limit);
54 effective_limit = std::min(effective_limit.value_or(query_limit_64), query_limit_64);
55}
56
57void addNullSource(Pipe & pipe, SharedHeader header)
58{

Callers 1

makePipeMethod · 0.85

Calls 1

minFunction · 0.50

Tested by

no test coverage detected