mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-24 00:22:29 +00:00
Addition to prev. revision [#CLICKHOUSE-2].
This commit is contained in:
parent
50b84fcc9d
commit
dc0d5b604f
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user