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

Function checkASTSizeLimits

src/Interpreters/executeQuery.cpp:241–247  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

239}
240
241static void checkASTSizeLimits(const IAST & ast, const Settings & settings)
242{
243 if (settings[Setting::max_ast_depth])
244 ast.checkDepth(settings[Setting::max_ast_depth]);
245 if (settings[Setting::max_ast_elements])
246 ast.checkSize(settings[Setting::max_ast_elements]);
247}
248
249
250/// Log query into text log (not into system table).

Callers 1

executeQueryImplFunction · 0.85

Calls 2

checkDepthMethod · 0.80
checkSizeMethod · 0.45

Tested by

no test coverage detected