| 341 | } |
| 342 | |
| 343 | bool 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)' |
| 357 | void renameDuplicatedColumns(const ASTSelectQuery * select_query) |
no outgoing calls
no test coverage detected