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

Function hasArrayJoin

src/Interpreters/TreeRewriter.cpp:343–354  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

341}
342
343bool hasArrayJoin(const ASTPtr & ast)
344{
345 if (const ASTFunction * function = ast->as<ASTFunction>())
346 if (function->name == "arrayJoin")
347 return true;
348
349 for (const auto & child : ast->children)
350 if (!child->as<ASTSelectQuery>() && hasArrayJoin(child))
351 return true;
352
353 return false;
354}
355
356/// Keep number of columns for 'GLOBAL IN (SELECT 1 AS a, a)'
357void renameDuplicatedColumns(const ASTSelectQuery * select_query)

Calls

no outgoing calls

Tested by

no test coverage detected