| 188 | |
| 189 | |
| 190 | Pipe createRemoteSourcePipe( |
| 191 | RemoteQueryExecutorPtr query_executor, |
| 192 | bool add_aggregation_info, bool add_totals, bool add_extremes, bool async_read, size_t resize_number_after_remote_source) |
| 193 | { |
| 194 | Pipe pipe(std::make_shared<RemoteSource>(query_executor, add_aggregation_info, async_read)); |
| 195 | if (resize_number_after_remote_source > 1) |
| 196 | pipe.resize(resize_number_after_remote_source); |
| 197 | |
| 198 | if (add_totals) |
| 199 | pipe.addTotalsSource(std::make_shared<RemoteTotalsSource>(query_executor)); |
| 200 | |
| 201 | if (add_extremes) |
| 202 | pipe.addExtremesSource(std::make_shared<RemoteExtremesSource>(query_executor)); |
| 203 | |
| 204 | return pipe; |
| 205 | } |
| 206 | |
| 207 | } |
no test coverage detected