| 319 | } |
| 320 | |
| 321 | StorageLimits 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 | |
| 338 | std::pair<ActionsDAG, CorrelatedSubtrees> buildActionsDAGFromExpressionNode( |
| 339 | const QueryTreeNodePtr & expression_node, |
no test coverage detected