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

Function hasJoin

src/Interpreters/getHeaderForProcessingStage.cpp:30–38  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

28}
29
30bool hasJoin(const ASTSelectQuery & select)
31{
32 const auto & tables = select.tables();
33 if (!tables || tables->children.size() < 2)
34 return false;
35
36 const auto & joined_table = tables->children[1]->as<ASTTablesInSelectQueryElement &>();
37 return joined_table.table_join != nullptr;
38}
39
40bool hasArrayJoin(const ASTSelectQuery & select)
41{

Callers 3

removeJoinFunction · 0.70

Calls 2

tablesMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected