Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
2dot5
ClickHouse
提交
8129cd24
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,发现更多精彩内容 >>
提交
8129cd24
编写于
2月 04, 2020
作者:
N
Nikita Mikhaylov
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
another dictionary for another test
上级
efba7fe1
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
109 addition
and
44 deletion
+109
-44
dbms/tests/config/ints_dictionary.xml
dbms/tests/config/ints_dictionary.xml
+65
-0
dbms/tests/queries/0_stateless/01054_cache_dictionary_overflow_cell.sql
...ries/0_stateless/01054_cache_dictionary_overflow_cell.sql
+44
-44
未找到文件。
dbms/tests/config/ints_dictionary.xml
浏览文件 @
8129cd24
...
...
@@ -446,4 +446,69 @@
</attribute>
</structure>
</dictionary>
<dictionary>
<name>
one_cell_cache_ints_overflow
</name>
<source>
<clickhouse>
<host>
localhost
</host>
<port>
9000
</port>
<user>
default
</user>
<password></password>
<db>
test_01054_overflow
</db>
<table>
ints
</table>
</clickhouse>
</source>
<lifetime>
0
</lifetime>
<layout>
<cache><size_in_cells>
1
</size_in_cells></cache>
</layout>
<structure>
<id>
<name>
key
</name>
</id>
<attribute>
<name>
i8
</name>
<type>
Int8
</type>
<null_value>
0
</null_value>
</attribute>
<attribute>
<name>
i16
</name>
<type>
Int16
</type>
<null_value>
0
</null_value>
</attribute>
<attribute>
<name>
i32
</name>
<type>
Int32
</type>
<null_value>
0
</null_value>
</attribute>
<attribute>
<name>
i64
</name>
<type>
Int64
</type>
<null_value>
0
</null_value>
</attribute>
<attribute>
<name>
u8
</name>
<type>
UInt8
</type>
<null_value>
0
</null_value>
</attribute>
<attribute>
<name>
u16
</name>
<type>
UInt16
</type>
<null_value>
0
</null_value>
</attribute>
<attribute>
<name>
u32
</name>
<type>
UInt32
</type>
<null_value>
0
</null_value>
</attribute>
<attribute>
<name>
u64
</name>
<type>
UInt64
</type>
<null_value>
0
</null_value>
</attribute>
</structure>
</dictionary>
</dictionaries>
\ No newline at end of file
dbms/tests/queries/0_stateless/01054_cache_dictionary_overflow_cell.sql
浏览文件 @
8129cd24
create
database
if
not
exists
test_01054
;
drop
table
if
exists
test_01054
.
ints
;
create
database
if
not
exists
test_01054
_overflow
;
drop
table
if
exists
test_01054
_overflow
.
ints
;
create
table
test_01054
.
ints
(
key
UInt64
,
i8
Int8
,
i16
Int16
,
i32
Int32
,
i64
Int64
,
u8
UInt8
,
u16
UInt16
,
u32
UInt32
,
u64
UInt64
)
Engine
=
Memory
;
create
table
test_01054
_overflow
.
ints
(
key
UInt64
,
i8
Int8
,
i16
Int16
,
i32
Int32
,
i64
Int64
,
u8
UInt8
,
u16
UInt16
,
u32
UInt32
,
u64
UInt64
)
Engine
=
Memory
;
insert
into
test_01054
.
ints
values
(
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
);
insert
into
test_01054
.
ints
values
(
2
,
2
,
2
,
2
,
2
,
2
,
2
,
2
,
2
);
insert
into
test_01054
.
ints
values
(
3
,
3
,
3
,
3
,
3
,
3
,
3
,
3
,
3
);
insert
into
test_01054
.
ints
values
(
4
,
4
,
4
,
4
,
4
,
4
,
4
,
4
,
4
);
insert
into
test_01054
.
ints
values
(
5
,
5
,
5
,
5
,
5
,
5
,
5
,
5
,
5
);
insert
into
test_01054
.
ints
values
(
6
,
6
,
6
,
6
,
6
,
6
,
6
,
6
,
6
);
insert
into
test_01054
.
ints
values
(
7
,
7
,
7
,
7
,
7
,
7
,
7
,
7
,
7
);
insert
into
test_01054
.
ints
values
(
8
,
8
,
8
,
8
,
8
,
8
,
8
,
8
,
8
);
insert
into
test_01054
.
ints
values
(
9
,
9
,
9
,
9
,
9
,
9
,
9
,
9
,
9
);
insert
into
test_01054
.
ints
values
(
10
,
10
,
10
,
10
,
10
,
10
,
10
,
10
,
10
);
insert
into
test_01054
.
ints
values
(
11
,
11
,
11
,
11
,
11
,
11
,
11
,
11
,
11
);
insert
into
test_01054
.
ints
values
(
12
,
12
,
12
,
12
,
12
,
12
,
12
,
12
,
12
);
insert
into
test_01054
.
ints
values
(
13
,
13
,
13
,
13
,
13
,
13
,
13
,
13
,
13
);
insert
into
test_01054
.
ints
values
(
14
,
14
,
14
,
14
,
14
,
14
,
14
,
14
,
14
);
insert
into
test_01054
.
ints
values
(
15
,
15
,
15
,
15
,
15
,
15
,
15
,
15
,
15
);
insert
into
test_01054
.
ints
values
(
16
,
16
,
16
,
16
,
16
,
16
,
16
,
16
,
16
);
insert
into
test_01054
.
ints
values
(
17
,
17
,
17
,
17
,
17
,
17
,
17
,
17
,
17
);
insert
into
test_01054
.
ints
values
(
18
,
18
,
18
,
18
,
18
,
18
,
18
,
18
,
18
);
insert
into
test_01054
.
ints
values
(
19
,
19
,
19
,
19
,
19
,
19
,
19
,
19
,
19
);
insert
into
test_01054
.
ints
values
(
20
,
20
,
20
,
20
,
20
,
20
,
20
,
20
,
20
);
insert
into
test_01054
_overflow
.
ints
values
(
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
);
insert
into
test_01054
_overflow
.
ints
values
(
2
,
2
,
2
,
2
,
2
,
2
,
2
,
2
,
2
);
insert
into
test_01054
_overflow
.
ints
values
(
3
,
3
,
3
,
3
,
3
,
3
,
3
,
3
,
3
);
insert
into
test_01054
_overflow
.
ints
values
(
4
,
4
,
4
,
4
,
4
,
4
,
4
,
4
,
4
);
insert
into
test_01054
_overflow
.
ints
values
(
5
,
5
,
5
,
5
,
5
,
5
,
5
,
5
,
5
);
insert
into
test_01054
_overflow
.
ints
values
(
6
,
6
,
6
,
6
,
6
,
6
,
6
,
6
,
6
);
insert
into
test_01054
_overflow
.
ints
values
(
7
,
7
,
7
,
7
,
7
,
7
,
7
,
7
,
7
);
insert
into
test_01054
_overflow
.
ints
values
(
8
,
8
,
8
,
8
,
8
,
8
,
8
,
8
,
8
);
insert
into
test_01054
_overflow
.
ints
values
(
9
,
9
,
9
,
9
,
9
,
9
,
9
,
9
,
9
);
insert
into
test_01054
_overflow
.
ints
values
(
10
,
10
,
10
,
10
,
10
,
10
,
10
,
10
,
10
);
insert
into
test_01054
_overflow
.
ints
values
(
11
,
11
,
11
,
11
,
11
,
11
,
11
,
11
,
11
);
insert
into
test_01054
_overflow
.
ints
values
(
12
,
12
,
12
,
12
,
12
,
12
,
12
,
12
,
12
);
insert
into
test_01054
_overflow
.
ints
values
(
13
,
13
,
13
,
13
,
13
,
13
,
13
,
13
,
13
);
insert
into
test_01054
_overflow
.
ints
values
(
14
,
14
,
14
,
14
,
14
,
14
,
14
,
14
,
14
);
insert
into
test_01054
_overflow
.
ints
values
(
15
,
15
,
15
,
15
,
15
,
15
,
15
,
15
,
15
);
insert
into
test_01054
_overflow
.
ints
values
(
16
,
16
,
16
,
16
,
16
,
16
,
16
,
16
,
16
);
insert
into
test_01054
_overflow
.
ints
values
(
17
,
17
,
17
,
17
,
17
,
17
,
17
,
17
,
17
);
insert
into
test_01054
_overflow
.
ints
values
(
18
,
18
,
18
,
18
,
18
,
18
,
18
,
18
,
18
);
insert
into
test_01054
_overflow
.
ints
values
(
19
,
19
,
19
,
19
,
19
,
19
,
19
,
19
,
19
);
insert
into
test_01054
_overflow
.
ints
values
(
20
,
20
,
20
,
20
,
20
,
20
,
20
,
20
,
20
);
select
dictGet
(
'one_cell_cache_ints'
,
'i8'
,
toUInt64
(
1
)),
dictGet
(
'one_cell_cache_ints'
,
'i8'
,
toUInt64
(
2
)),
dictGet
(
'one_cell_cache_ints'
,
'i8'
,
toUInt64
(
3
)),
dictGet
(
'one_cell_cache_ints'
,
'i8'
,
toUInt64
(
4
)),
dictGet
(
'one_cell_cache_ints'
,
'i8'
,
toUInt64
(
5
)),
dictGet
(
'one_cell_cache_ints'
,
'i8'
,
toUInt64
(
6
)),
dictGet
(
'one_cell_cache_ints'
,
'i8'
,
toUInt64
(
7
)),
dictGet
(
'one_cell_cache_ints'
,
'i8'
,
toUInt64
(
8
)),
dictGet
(
'one_cell_cache_ints'
,
'i8'
,
toUInt64
(
9
)),
dictGet
(
'one_cell_cache_ints'
,
'i8'
,
toUInt64
(
10
)),
dictGet
(
'one_cell_cache_ints'
,
'i8'
,
toUInt64
(
11
)),
dictGet
(
'one_cell_cache_ints'
,
'i8'
,
toUInt64
(
12
)),
dictGet
(
'one_cell_cache_ints'
,
'i8'
,
toUInt64
(
13
)),
dictGet
(
'one_cell_cache_ints'
,
'i8'
,
toUInt64
(
14
)),
dictGet
(
'one_cell_cache_ints'
,
'i8'
,
toUInt64
(
15
)),
dictGet
(
'one_cell_cache_ints'
,
'i8'
,
toUInt64
(
16
)),
dictGet
(
'one_cell_cache_ints'
,
'i8'
,
toUInt64
(
17
)),
dictGet
(
'one_cell_cache_ints'
,
'i8'
,
toUInt64
(
18
)),
dictGet
(
'one_cell_cache_ints'
,
'i8'
,
toUInt64
(
19
)),
dictGet
(
'one_cell_cache_ints'
,
'i8'
,
toUInt64
(
20
));
dictGet
(
'one_cell_cache_ints
_overflow
'
,
'i8'
,
toUInt64
(
1
)),
dictGet
(
'one_cell_cache_ints
_overflow
'
,
'i8'
,
toUInt64
(
2
)),
dictGet
(
'one_cell_cache_ints
_overflow
'
,
'i8'
,
toUInt64
(
3
)),
dictGet
(
'one_cell_cache_ints
_overflow
'
,
'i8'
,
toUInt64
(
4
)),
dictGet
(
'one_cell_cache_ints
_overflow
'
,
'i8'
,
toUInt64
(
5
)),
dictGet
(
'one_cell_cache_ints
_overflow
'
,
'i8'
,
toUInt64
(
6
)),
dictGet
(
'one_cell_cache_ints
_overflow
'
,
'i8'
,
toUInt64
(
7
)),
dictGet
(
'one_cell_cache_ints
_overflow
'
,
'i8'
,
toUInt64
(
8
)),
dictGet
(
'one_cell_cache_ints
_overflow
'
,
'i8'
,
toUInt64
(
9
)),
dictGet
(
'one_cell_cache_ints
_overflow
'
,
'i8'
,
toUInt64
(
10
)),
dictGet
(
'one_cell_cache_ints
_overflow
'
,
'i8'
,
toUInt64
(
11
)),
dictGet
(
'one_cell_cache_ints
_overflow
'
,
'i8'
,
toUInt64
(
12
)),
dictGet
(
'one_cell_cache_ints
_overflow
'
,
'i8'
,
toUInt64
(
13
)),
dictGet
(
'one_cell_cache_ints
_overflow
'
,
'i8'
,
toUInt64
(
14
)),
dictGet
(
'one_cell_cache_ints
_overflow
'
,
'i8'
,
toUInt64
(
15
)),
dictGet
(
'one_cell_cache_ints
_overflow
'
,
'i8'
,
toUInt64
(
16
)),
dictGet
(
'one_cell_cache_ints
_overflow
'
,
'i8'
,
toUInt64
(
17
)),
dictGet
(
'one_cell_cache_ints
_overflow
'
,
'i8'
,
toUInt64
(
18
)),
dictGet
(
'one_cell_cache_ints
_overflow
'
,
'i8'
,
toUInt64
(
19
)),
dictGet
(
'one_cell_cache_ints
_overflow
'
,
'i8'
,
toUInt64
(
20
));
SELECT
arrayMap
(
x
->
dictGet
(
'one_cell_cache_ints'
,
'i8'
,
toUInt64
(
x
)),
array
)
SELECT
arrayMap
(
x
->
dictGet
(
'one_cell_cache_ints
_overflow
'
,
'i8'
,
toUInt64
(
x
)),
array
)
FROM
(
SELECT
[
1
,
2
,
3
,
4
,
5
,
6
,
7
,
8
,
9
,
10
,
11
,
12
,
13
,
14
,
15
,
16
,
17
,
18
,
19
,
20
]
AS
array
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录