IStorage::read() function, "max_block_size" parameter: change type UInt64 -> size_t.

This commit is contained in:
Vitaly Baranov 2019-02-19 02:38:44 +03:00
parent 4b6cba9a8e
commit 309df832ec
45 changed files with 51 additions and 50 deletions

View File

@ -37,7 +37,7 @@ public:
const SelectQueryInfo & query_info,
const Context & context,
QueryProcessingStage::Enum processed_stage,
UInt64 max_block_size,
size_t max_block_size,
unsigned num_streams) override;
void rename(const String & /*new_path_to_db*/, const String & new_database_name, const String & new_table_name) override

View File

@ -23,7 +23,7 @@ public:
const SelectQueryInfo & query_info,
const Context & context,
QueryProcessingStage::Enum /*processed_stage*/,
UInt64 max_block_size,
size_t max_block_size,
unsigned num_streams) override
{
return MergeTreeDataSelectExecutor(part->storage).readFromParts(

View File

@ -138,7 +138,7 @@ BlockInputStreams StorageBuffer::read(
const SelectQueryInfo & query_info,
const Context & context,
QueryProcessingStage::Enum processed_stage,
UInt64 max_block_size,
size_t max_block_size,
unsigned num_streams)
{
BlockInputStreams streams_from_dst;

View File

@ -61,7 +61,7 @@ public:
const SelectQueryInfo & query_info,
const Context & context,
QueryProcessingStage::Enum processed_stage,
UInt64 max_block_size,
size_t max_block_size,
unsigned num_streams) override;
BlockOutputStreamPtr write(const ASTPtr & query, const Settings & settings) override;

View File

@ -258,12 +258,13 @@ void StorageCatBoostPool::createSampleBlockAndColumns()
setColumns(columns);
}
BlockInputStreams StorageCatBoostPool::read(const Names & column_names,
const SelectQueryInfo & /*query_info*/,
const Context & context,
QueryProcessingStage::Enum /*processed_stage*/,
UInt64 max_block_size,
unsigned /*threads*/)
BlockInputStreams StorageCatBoostPool::read(
const Names & column_names,
const SelectQueryInfo & /*query_info*/,
const Context & context,
QueryProcessingStage::Enum /*processed_stage*/,
size_t max_block_size,
unsigned /*threads*/)
{
auto stream = std::make_shared<CatBoostDatasetBlockInputStream>(
data_description_file_name, "TSV", sample_block, context, max_block_size);

View File

@ -18,7 +18,7 @@ public:
const SelectQueryInfo & query_info,
const Context & context,
QueryProcessingStage::Enum processed_stage,
UInt64 max_block_size,
size_t max_block_size,
unsigned threads) override;
private:

View File

@ -46,7 +46,7 @@ BlockInputStreams StorageDictionary::read(
const SelectQueryInfo & /*query_info*/,
const Context & context,
QueryProcessingStage::Enum /*processed_stage*/,
const UInt64 max_block_size,
const size_t max_block_size,
const unsigned /*threads*/)
{
auto dictionary = context.getExternalDictionaries().getDictionary(dictionary_name);

View File

@ -28,7 +28,7 @@ public:
const SelectQueryInfo & query_info,
const Context & context,
QueryProcessingStage::Enum processed_stage,
UInt64 max_block_size = DEFAULT_BLOCK_SIZE,
size_t max_block_size = DEFAULT_BLOCK_SIZE,
unsigned threads = 1) override;
void drop() override {}

View File

@ -68,7 +68,7 @@ public:
const SelectQueryInfo & query_info,
const Context & context,
QueryProcessingStage::Enum processed_stage,
UInt64 max_block_size,
size_t max_block_size,
unsigned num_streams) override;
BlockOutputStreamPtr write(const ASTPtr & query, const Settings & settings) override;

View File

@ -187,7 +187,7 @@ BlockInputStreams StorageFile::read(
const SelectQueryInfo & /*query_info*/,
const Context & context,
QueryProcessingStage::Enum /*processed_stage*/,
UInt64 max_block_size,
size_t max_block_size,
unsigned /*num_streams*/)
{
BlockInputStreamPtr block_input = std::make_shared<StorageFileBlockInputStream>(*this, context, max_block_size);

View File

@ -36,7 +36,7 @@ public:
const SelectQueryInfo & query_info,
const Context & context,
QueryProcessingStage::Enum processed_stage,
UInt64 max_block_size,
size_t max_block_size,
unsigned num_streams) override;
BlockOutputStreamPtr write(

View File

@ -133,7 +133,7 @@ BlockInputStreams StorageHDFS::read(
const SelectQueryInfo & /*query_info*/,
const Context & context_,
QueryProcessingStage::Enum /*processed_stage*/,
UInt64 max_block_size,
size_t max_block_size,
unsigned /*num_streams*/)
{
return {std::make_shared<HDFSBlockInputStream>(

View File

@ -30,7 +30,7 @@ public:
const SelectQueryInfo & query_info,
const Context & context,
QueryProcessingStage::Enum processed_stage,
UInt64 max_block_size,
size_t max_block_size,
unsigned num_streams) override;
BlockOutputStreamPtr write(const ASTPtr & query, const Settings & settings) override;

View File

@ -362,7 +362,7 @@ BlockInputStreams StorageJoin::read(
const SelectQueryInfo & /*query_info*/,
const Context & /*context*/,
QueryProcessingStage::Enum /*processed_stage*/,
UInt64 max_block_size,
size_t max_block_size,
unsigned /*num_streams*/)
{
check(column_names);

View File

@ -38,7 +38,7 @@ public:
const SelectQueryInfo & query_info,
const Context & context,
QueryProcessingStage::Enum processed_stage,
UInt64 max_block_size,
size_t max_block_size,
unsigned num_streams) override;
private:

View File

@ -578,7 +578,7 @@ BlockInputStreams StorageLog::read(
const SelectQueryInfo & /*query_info*/,
const Context & context,
QueryProcessingStage::Enum /*processed_stage*/,
UInt64 max_block_size,
size_t max_block_size,
unsigned num_streams)
{
check(column_names);

View File

@ -31,7 +31,7 @@ public:
const SelectQueryInfo & query_info,
const Context & context,
QueryProcessingStage::Enum processed_stage,
UInt64 max_block_size,
size_t max_block_size,
unsigned num_streams) override;
BlockOutputStreamPtr write(const ASTPtr & query, const Settings & settings) override;

View File

@ -186,7 +186,7 @@ BlockInputStreams StorageMaterializedView::read(
const SelectQueryInfo & query_info,
const Context & context,
QueryProcessingStage::Enum processed_stage,
const UInt64 max_block_size,
const size_t max_block_size,
const unsigned num_streams)
{
auto storage = getTargetTable();

View File

@ -54,7 +54,7 @@ public:
const SelectQueryInfo & query_info,
const Context & context,
QueryProcessingStage::Enum processed_stage,
UInt64 max_block_size,
size_t max_block_size,
unsigned num_streams) override;
String getDataPath() const override;

View File

@ -33,7 +33,7 @@ public:
const SelectQueryInfo & query_info,
const Context & context,
QueryProcessingStage::Enum processed_stage,
UInt64 max_block_size,
size_t max_block_size,
unsigned num_streams) override;
BlockOutputStreamPtr write(const ASTPtr & query, const Settings & settings) override;

View File

@ -177,7 +177,7 @@ BlockInputStreams StorageMerge::read(
const SelectQueryInfo & query_info,
const Context & context,
QueryProcessingStage::Enum processed_stage,
const UInt64 max_block_size,
const size_t max_block_size,
const unsigned num_streams)
{
BlockInputStreams res;

View File

@ -36,7 +36,7 @@ public:
const SelectQueryInfo & query_info,
const Context & context,
QueryProcessingStage::Enum processed_stage,
UInt64 max_block_size,
size_t max_block_size,
unsigned num_streams) override;
void drop() override {}

View File

@ -120,7 +120,7 @@ BlockInputStreams StorageMergeTree::read(
const SelectQueryInfo & query_info,
const Context & context,
QueryProcessingStage::Enum /*processed_stage*/,
const UInt64 max_block_size,
const size_t max_block_size,
const unsigned num_streams)
{
return reader.read(column_names, query_info, context, max_block_size, num_streams);

View File

@ -54,7 +54,7 @@ public:
const SelectQueryInfo & query_info,
const Context & context,
QueryProcessingStage::Enum processed_stage,
UInt64 max_block_size,
size_t max_block_size,
unsigned num_streams) override;
BlockOutputStreamPtr write(const ASTPtr & query, const Settings & settings) override;

View File

@ -52,7 +52,7 @@ BlockInputStreams StorageMySQL::read(
const SelectQueryInfo & query_info,
const Context & context,
QueryProcessingStage::Enum /*processed_stage*/,
UInt64 max_block_size,
size_t max_block_size,
unsigned)
{
check(column_names);

View File

@ -37,7 +37,7 @@ public:
const SelectQueryInfo & query_info,
const Context & context,
QueryProcessingStage::Enum processed_stage,
UInt64 max_block_size,
size_t max_block_size,
unsigned num_streams) override;
BlockOutputStreamPtr write(const ASTPtr & query, const Settings & settings) override;

View File

@ -2922,7 +2922,7 @@ BlockInputStreams StorageReplicatedMergeTree::read(
const SelectQueryInfo & query_info,
const Context & context,
QueryProcessingStage::Enum /*processed_stage*/,
const UInt64 max_block_size,
const size_t max_block_size,
const unsigned num_streams)
{
const Settings & settings = context.getSettingsRef();

View File

@ -109,7 +109,7 @@ public:
const SelectQueryInfo & query_info,
const Context & context,
QueryProcessingStage::Enum processed_stage,
UInt64 max_block_size,
size_t max_block_size,
unsigned num_streams) override;
BlockOutputStreamPtr write(const ASTPtr & query, const Settings & settings) override;

View File

@ -33,7 +33,7 @@ public:
const SelectQueryInfo & query_info,
const Context & context,
QueryProcessingStage::Enum processed_stage,
UInt64 max_block_size,
size_t max_block_size,
unsigned num_streams) override;
BlockOutputStreamPtr write(const ASTPtr & query, const Settings & settings) override;

View File

@ -388,7 +388,7 @@ BlockInputStreams StorageTinyLog::read(
const SelectQueryInfo & /*query_info*/,
const Context & context,
QueryProcessingStage::Enum /*processed_stage*/,
const UInt64 max_block_size,
const size_t max_block_size,
const unsigned /*num_streams*/)
{
check(column_names);

View File

@ -32,7 +32,7 @@ public:
const SelectQueryInfo & query_info,
const Context & context,
QueryProcessingStage::Enum processed_stage,
UInt64 max_block_size,
size_t max_block_size,
unsigned num_streams) override;
BlockOutputStreamPtr write(const ASTPtr & query, const Settings & settings) override;

View File

@ -157,7 +157,7 @@ BlockInputStreams IStorageURLBase::read(const Names & column_names,
const SelectQueryInfo & query_info,
const Context & context,
QueryProcessingStage::Enum processed_stage,
UInt64 max_block_size,
size_t max_block_size,
unsigned /*num_streams*/)
{
auto request_uri = uri;

View File

@ -25,7 +25,7 @@ public:
const SelectQueryInfo & query_info,
const Context & context,
QueryProcessingStage::Enum processed_stage,
UInt64 max_block_size,
size_t max_block_size,
unsigned num_streams) override;
BlockOutputStreamPtr write(const ASTPtr & query, const Settings & settings) override;

View File

@ -27,7 +27,7 @@ public:
const SelectQueryInfo & query_info,
const Context & context,
QueryProcessingStage::Enum processed_stage,
UInt64 max_block_size,
size_t max_block_size,
unsigned num_streams) override;
void rename(const String & /*new_path_to_db*/, const String & /*new_database_name*/, const String & new_table_name) override

View File

@ -77,7 +77,7 @@ BlockInputStreams StorageXDBC::read(const Names & column_names,
const SelectQueryInfo & query_info,
const Context & context,
QueryProcessingStage::Enum processed_stage,
UInt64 max_block_size,
size_t max_block_size,
unsigned num_streams)
{
check(column_names);

View File

@ -19,7 +19,7 @@ namespace DB
const SelectQueryInfo & query_info,
const Context & context,
QueryProcessingStage::Enum processed_stage,
UInt64 max_block_size,
size_t max_block_size,
unsigned num_streams) override;

View File

@ -261,7 +261,7 @@ BlockInputStreams StorageSystemColumns::read(
const SelectQueryInfo & query_info,
const Context & context,
QueryProcessingStage::Enum /*processed_stage*/,
const UInt64 max_block_size,
const size_t max_block_size,
const unsigned /*num_streams*/)
{
check(column_names);

View File

@ -23,7 +23,7 @@ public:
const SelectQueryInfo & query_info,
const Context & context,
QueryProcessingStage::Enum processed_stage,
UInt64 max_block_size,
size_t max_block_size,
unsigned num_streams) override;
private:

View File

@ -55,7 +55,7 @@ BlockInputStreams StorageSystemNumbers::read(
const SelectQueryInfo &,
const Context & /*context*/,
QueryProcessingStage::Enum /*processed_stage*/,
UInt64 max_block_size,
size_t max_block_size,
unsigned num_streams)
{
check(column_names);

View File

@ -31,7 +31,7 @@ public:
const SelectQueryInfo & query_info,
const Context & context,
QueryProcessingStage::Enum processed_stage,
UInt64 max_block_size,
size_t max_block_size,
unsigned num_streams) override;
private:

View File

@ -26,7 +26,7 @@ public:
const SelectQueryInfo & query_info,
const Context & context,
QueryProcessingStage::Enum processed_stage,
UInt64 max_block_size,
size_t max_block_size,
unsigned num_streams) override;
private:

View File

@ -28,7 +28,7 @@ public:
const SelectQueryInfo & query_info,
const Context & context,
QueryProcessingStage::Enum processed_stage,
UInt64 max_block_size,
size_t max_block_size,
unsigned num_streams) override;
struct StoragesInfo

View File

@ -23,7 +23,7 @@ public:
const SelectQueryInfo & query_info,
const Context & context,
QueryProcessingStage::Enum processed_stage,
UInt64 max_block_size,
size_t max_block_size,
unsigned num_streams) override;
private:

View File

@ -314,7 +314,7 @@ BlockInputStreams StorageSystemTables::read(
const SelectQueryInfo & query_info,
const Context & context,
QueryProcessingStage::Enum /*processed_stage*/,
const UInt64 max_block_size,
const size_t max_block_size,
const unsigned /*num_streams*/)
{
check(column_names);

View File

@ -23,7 +23,7 @@ public:
const SelectQueryInfo & query_info,
const Context & context,
QueryProcessingStage::Enum processed_stage,
UInt64 max_block_size,
size_t max_block_size,
unsigned num_streams) override;
private: