| 176 | } |
| 177 | |
| 178 | static String formattedAST(const ASTPtr & ast, bool enable_analyzer) |
| 179 | { |
| 180 | if (!ast) |
| 181 | return {}; |
| 182 | |
| 183 | WriteBufferFromOwnString buf; |
| 184 | IAST::FormatSettings ast_format_settings( |
| 185 | /*one_line=*/true, /*identifier_quoting_rule=*/IdentifierQuotingRule::Always); |
| 186 | if (!enable_analyzer) |
| 187 | ast_format_settings.collapse_identical_nodes_to_aliases = true; |
| 188 | ast->format(buf, ast_format_settings); |
| 189 | return buf.str(); |
| 190 | } |
| 191 | |
| 192 | ReadFromRemote::ReadFromRemote( |
| 193 | ClusterProxy::SelectStreamFactory::Shards shards_, |
no test coverage detected