2021-03-20 14:13:57 +00:00
|
|
|
#pragma once
|
|
|
|
|
2022-09-28 13:29:29 +00:00
|
|
|
#include "config.h"
|
2021-03-20 14:13:57 +00:00
|
|
|
|
|
|
|
#if USE_MYSQL || USE_LIBPQXX
|
|
|
|
|
|
|
|
#include <Storages/StorageProxy.h>
|
2021-10-16 14:03:50 +00:00
|
|
|
#include <QueryPipeline/Pipe.h>
|
2021-03-20 14:13:57 +00:00
|
|
|
|
|
|
|
|
|
|
|
namespace DB
|
|
|
|
{
|
|
|
|
|
2021-07-05 19:07:56 +00:00
|
|
|
bool needRewriteQueryWithFinalForStorage(const Names & column_names, const StoragePtr & storage);
|
|
|
|
|
2022-05-20 19:49:31 +00:00
|
|
|
void readFinalFromNestedStorage(
|
|
|
|
QueryPlan & query_plan,
|
2021-03-20 14:13:57 +00:00
|
|
|
StoragePtr nested_storage,
|
|
|
|
const Names & column_names,
|
|
|
|
SelectQueryInfo & query_info,
|
2021-04-11 07:44:40 +00:00
|
|
|
ContextPtr context,
|
2021-03-20 14:13:57 +00:00
|
|
|
QueryProcessingStage::Enum processed_stage,
|
|
|
|
size_t max_block_size,
|
2022-10-07 10:46:45 +00:00
|
|
|
size_t num_streams);
|
2021-03-20 14:13:57 +00:00
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|