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

Function buildStorageLimits

src/Planner/Utils.cpp:321–336  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

319}
320
321StorageLimits buildStorageLimits(const Context & context, const SelectQueryOptions & options)
322{
323 const auto & settings = context.getSettingsRef();
324
325 StreamLocalLimits limits;
326 SizeLimits leaf_limits;
327
328 /// Set the limits and quota for reading data, the speed and time of the query.
329 if (!options.ignore_limits)
330 {
331 limits = getLimitsForStorage(settings, options);
332 leaf_limits = SizeLimits(settings[Setting::max_rows_to_read_leaf], settings[Setting::max_bytes_to_read_leaf], settings[Setting::read_overflow_mode_leaf]);
333 }
334
335 return {limits, leaf_limits};
336}
337
338std::pair<ActionsDAG, CorrelatedSubtrees> buildActionsDAGFromExpressionNode(
339 const QueryTreeNodePtr & expression_node,

Callers 2

buildPlanForQueryNodeMethod · 0.85
replaceReadingFromTableFunction · 0.85

Calls 2

getLimitsForStorageFunction · 0.70
SizeLimitsClass · 0.50

Tested by

no test coverage detected