2021-03-20 14:13:57 +00:00
|
|
|
#pragma once
|
|
|
|
|
2021-10-27 23:10:39 +00:00
|
|
|
#include "config_core.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);
|
|
|
|
|
2021-03-20 14:13:57 +00:00
|
|
|
Pipe readFinalFromNestedStorage(
|
|
|
|
StoragePtr nested_storage,
|
|
|
|
const Names & column_names,
|
|
|
|
const StorageMetadataPtr & /*metadata_snapshot*/,
|
|
|
|
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,
|
|
|
|
unsigned int num_streams);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|