| 28 | } |
| 29 | |
| 30 | bool 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 | |
| 40 | bool hasArrayJoin(const ASTSelectQuery & select) |
| 41 | { |
no test coverage detected