Addition to prev. revision [#CLICKHOUSE-2].

This commit is contained in:
Alexey Milovidov 2017-06-06 22:06:44 +03:00
parent 50b84fcc9d
commit dc0d5b604f
6 changed files with 236 additions and 231 deletions

View File

@ -105,7 +105,8 @@ int main(int argc, char ** argv)
/// create an object of an existing hit log table /// create an object of an existing hit log table
StoragePtr table = StorageLog::create("./", "HitLog", std::make_shared<NamesAndTypesList>(names_and_types_list)); StoragePtr table = StorageLog::create("./", "HitLog", std::make_shared<NamesAndTypesList>(names_and_types_list),
NamesAndTypesList{}, NamesAndTypesList{}, ColumnDefaults{}, DEFAULT_MAX_COMPRESS_BLOCK_SIZE);
table->startup(); table->startup();
/// read from it, apply the expression, filter, and write in tsv form to the console /// read from it, apply the expression, filter, and write in tsv form to the console

View File

@ -95,7 +95,8 @@ try
/// create an object of an existing hit log table /// create an object of an existing hit log table
StoragePtr table = StorageLog::create("./", "HitLog", std::make_shared<NamesAndTypesList>(names_and_types_list)); StoragePtr table = StorageLog::create("./", "HitLog", std::make_shared<NamesAndTypesList>(names_and_types_list),
NamesAndTypesList{}, NamesAndTypesList{}, ColumnDefaults{}, DEFAULT_MAX_COMPRESS_BLOCK_SIZE);
table->startup(); table->startup();
/// read from it /// read from it

View File

@ -107,7 +107,8 @@ try
/// create an object of an existing hit log table /// create an object of an existing hit log table
StoragePtr table = StorageLog::create("./", "HitLog", std::make_shared<NamesAndTypesList>(names_and_types_list)); StoragePtr table = StorageLog::create("./", "HitLog", std::make_shared<NamesAndTypesList>(names_and_types_list),
NamesAndTypesList{}, NamesAndTypesList{}, ColumnDefaults{}, DEFAULT_MAX_COMPRESS_BLOCK_SIZE);
table->startup(); table->startup();
/// read from it, sort it, and write it in tsv form to the console /// read from it, sort it, and write it in tsv form to the console

View File

@ -98,7 +98,8 @@ try
/// create a hit log table /// create a hit log table
StoragePtr table = StorageLog::create("./", "HitLog", std::make_shared<NamesAndTypesList>(names_and_types_list)); StoragePtr table = StorageLog::create("./", "HitLog", std::make_shared<NamesAndTypesList>(names_and_types_list),
NamesAndTypesList{}, NamesAndTypesList{}, ColumnDefaults{}, DEFAULT_MAX_COMPRESS_BLOCK_SIZE);
table->startup(); table->startup();
/// create a description of how to read data from the tab separated dump /// create a description of how to read data from the tab separated dump

View File

@ -45,9 +45,9 @@ try
StoragePtr table = StorageMergeTree::create( StoragePtr table = StorageMergeTree::create(
"./", "default", "test", "./", "default", "test",
names_and_types, {}, {}, ColumnDefaults{}, false, names_and_types, NamesAndTypesList{}, NamesAndTypesList{}, ColumnDefaults{}, false,
context, primary_expr, "d", context, primary_expr, "d",
nullptr, 101, params, false, {}); ASTPtr{}, 101, params, false, MergeTreeSettings{});
table->startup(); table->startup();
/// write into it /// write into it

View File

@ -24,7 +24,8 @@ try
names_and_types->push_back(NameAndTypePair("a", std::make_shared<DataTypeUInt64>())); names_and_types->push_back(NameAndTypePair("a", std::make_shared<DataTypeUInt64>()));
names_and_types->push_back(NameAndTypePair("b", std::make_shared<DataTypeUInt8>())); names_and_types->push_back(NameAndTypePair("b", std::make_shared<DataTypeUInt8>()));
StoragePtr table = StorageLog::create("./", "test", names_and_types); StoragePtr table = StorageLog::create("./", "test", names_and_types,
NamesAndTypesList{}, NamesAndTypesList{}, ColumnDefaults{}, DEFAULT_MAX_COMPRESS_BLOCK_SIZE);
table->startup(); table->startup();
/// write into it /// write into it