Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
2dot5
ClickHouse
提交
2b20eca0
C
ClickHouse
项目概览
2dot5
/
ClickHouse
通知
3
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
C
ClickHouse
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
2b20eca0
编写于
5月 23, 2017
作者:
A
Alexey Milovidov
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Preparations, part 4: StorageDistributed is initialized with const Context [#CLICKHOUSE-31].
上级
ce581bbf
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
9 addition
and
9 deletion
+9
-9
dbms/src/Storages/StorageDistributed.cpp
dbms/src/Storages/StorageDistributed.cpp
+5
-5
dbms/src/Storages/StorageDistributed.h
dbms/src/Storages/StorageDistributed.h
+4
-4
未找到文件。
dbms/src/Storages/StorageDistributed.cpp
浏览文件 @
2b20eca0
...
...
@@ -128,7 +128,7 @@ StorageDistributed::StorageDistributed(
const
String
&
remote_database_
,
const
String
&
remote_table_
,
const
String
&
cluster_name_
,
Context
&
context_
,
const
Context
&
context_
,
const
ASTPtr
&
sharding_key_
,
const
String
&
data_path_
)
:
name
(
name_
),
columns
(
columns_
),
...
...
@@ -152,7 +152,7 @@ StorageDistributed::StorageDistributed(
const
String
&
remote_database_
,
const
String
&
remote_table_
,
const
String
&
cluster_name_
,
Context
&
context_
,
const
Context
&
context_
,
const
ASTPtr
&
sharding_key_
,
const
String
&
data_path_
)
:
IStorage
{
materialized_columns_
,
alias_columns_
,
column_defaults_
},
...
...
@@ -177,7 +177,7 @@ StoragePtr StorageDistributed::create(
const
String
&
remote_database_
,
const
String
&
remote_table_
,
const
String
&
cluster_name_
,
Context
&
context_
,
const
Context
&
context_
,
const
ASTPtr
&
sharding_key_
,
const
String
&
data_path_
)
{
...
...
@@ -197,7 +197,7 @@ StoragePtr StorageDistributed::create(
const
String
&
remote_database_
,
const
String
&
remote_table_
,
ClusterPtr
&
owned_cluster_
,
Context
&
context_
)
const
Context
&
context_
)
{
auto
res
=
make_shared
(
name_
,
columns_
,
remote_database_
,
...
...
@@ -450,7 +450,7 @@ BlockInputStreams StorageDistributed::describe(const Context & context, const Se
/** The functionality of shard_multiplexing is not completed - turn it off.
* (Because connecting connections to different shards within a single thread is not done in parallel.)
* For more information, see https:
//███████████.yandex-team.ru/METR-18300
* For more information, see https://███████████.yandex-team.ru/METR-18300
*/
bool
enable_shard_multiplexing
=
false
;
...
...
dbms/src/Storages/StorageDistributed.h
浏览文件 @
2b20eca0
...
...
@@ -41,7 +41,7 @@ public:
const
String
&
remote_database_
,
/// database on remote servers.
const
String
&
remote_table_
,
/// The name of the table on the remote servers.
const
String
&
cluster_name
,
Context
&
context_
,
const
Context
&
context_
,
const
ASTPtr
&
sharding_key_
,
const
String
&
data_path_
);
...
...
@@ -51,7 +51,7 @@ public:
const
String
&
remote_database_
,
/// database on remote servers.
const
String
&
remote_table_
,
/// The name of the table on the remote servers.
ClusterPtr
&
owned_cluster_
,
Context
&
context_
);
const
Context
&
context_
);
std
::
string
getName
()
const
override
{
return
"Distributed"
;
}
std
::
string
getTableName
()
const
override
{
return
name
;
}
...
...
@@ -110,7 +110,7 @@ private:
const
String
&
remote_database_
,
const
String
&
remote_table_
,
const
String
&
cluster_name_
,
Context
&
context_
,
const
Context
&
context_
,
const
ASTPtr
&
sharding_key_
=
nullptr
,
const
String
&
data_path_
=
String
{});
...
...
@@ -123,7 +123,7 @@ private:
const
String
&
remote_database_
,
const
String
&
remote_table_
,
const
String
&
cluster_name_
,
Context
&
context_
,
const
Context
&
context_
,
const
ASTPtr
&
sharding_key_
=
nullptr
,
const
String
&
data_path_
=
String
{});
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录