Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
2dot5
ClickHouse
提交
6b9397e8
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,发现更多精彩内容 >>
提交
6b9397e8
编写于
6月 17, 2019
作者:
V
Vladimir Chebotarev
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Tests fixes.
上级
d3db5a38
变更
3
显示空白变更内容
内联
并排
Showing
3 changed file
with
14 addition
and
11 deletion
+14
-11
dbms/tests/queries/0_stateless/00950_table_function_s3_wip/clickhouse-test
...s/0_stateless/00950_table_function_s3_wip/clickhouse-test
+9
-9
dbms/tests/queries/0_stateless/00950_table_function_s3_wip/config.xml
...ueries/0_stateless/00950_table_function_s3_wip/config.xml
+2
-2
dbms/tests/queries/0_stateless/00950_table_function_s3_wip/test.csv
.../queries/0_stateless/00950_table_function_s3_wip/test.csv
+3
-0
未找到文件。
dbms/tests/queries/0_stateless/00950_table_function_s3_wip/clickhouse-test
浏览文件 @
6b9397e8
...
...
@@ -8,11 +8,11 @@ import threading
import
unittest
# 1) Run Go FakeS3 server.
# go run cmd/gofakes3/main.go -backend memory -host :9990
# 2) Create a bucket.
# curl -X PUT http://localhost:9990/abc/
# Run Go FakeS3 server.
# go run cmd/gofakes3/main.go -backend memory -host :9990 -initialbucket abc
config
=
os
.
path
.
join
(
os
.
path
.
dirname
(
sys
.
argv
[
0
]),
'config.xml'
)
test_csv
=
os
.
path
.
join
(
os
.
path
.
dirname
(
sys
.
argv
[
0
]),
'test.csv'
)
format
=
'column1 UInt32, column2 UInt32, column3 UInt32'
values
=
'(1, 2, 3), (3, 2, 1), (78, 43, 45)'
other_values
=
'(1, 1, 1), (1, 1, 1), (11, 11, 11)'
...
...
@@ -30,7 +30,7 @@ prepare_put_queries = [
]
queries
=
[
"select *, column1*column2*column3 from file('{}', 'CSV', '{}')"
.
format
(
os
.
path
.
expanduser
(
'~/test.csv'
)
,
format
),
"select *, column1*column2*column3 from file('{}', 'CSV', '{}')"
.
format
(
test_csv
,
format
),
"select *, column1*column2*column3 from url('https://storage.yandexcloud.net/milovidov/test.csv', 'CSV', '{}')"
.
format
(
format
),
"select *, column1*column2*column3 from s3('http://storage.yandexcloud.net/milovidov/test.csv', 'CSV', '{}')"
.
format
(
format
),
"select *, column1*column2*column3 from s3('http://{}:{}/{}/test.csv', 'CSV', '{}')"
.
format
(
localhost
,
fakes3_port
,
bucket
,
format
),
...
...
@@ -166,7 +166,7 @@ for query in prepare_put_queries:
result
=
subprocess
.
run
([
os
.
path
.
expanduser
(
'~/ClickHouse-bin/dbms/programs/clickhouse-local'
),
'-c'
,
os
.
path
.
expanduser
(
'~/config.xml'
)
,
config
,
'-q'
,
query
],
stdout
=
subprocess
.
PIPE
,
universal_newlines
=
True
)
...
...
@@ -177,7 +177,7 @@ for query in queries:
result
=
subprocess
.
run
([
os
.
path
.
expanduser
(
'~/ClickHouse-bin/dbms/programs/clickhouse-local'
),
'-c'
,
os
.
path
.
expanduser
(
'~/config.xml'
)
,
config
,
'-q'
,
query
],
stdout
=
subprocess
.
PIPE
,
universal_newlines
=
True
)
...
...
@@ -193,7 +193,7 @@ for query in put_queries:
result
=
subprocess
.
run
([
os
.
path
.
expanduser
(
'~/ClickHouse-bin/dbms/programs/clickhouse-local'
),
'-c'
,
os
.
path
.
expanduser
(
'~/config.xml'
)
,
config
,
'-q'
,
query
],
stdout
=
subprocess
.
PIPE
,
universal_newlines
=
True
)
...
...
@@ -207,7 +207,7 @@ for query in check_queries:
result
=
subprocess
.
run
([
os
.
path
.
expanduser
(
'~/ClickHouse-bin/dbms/programs/clickhouse-local'
),
'-c'
,
os
.
path
.
expanduser
(
'~/config.xml'
)
,
config
,
'-q'
,
query
],
stdout
=
subprocess
.
PIPE
,
universal_newlines
=
True
)
...
...
dbms/tests/queries/0_stateless/00950_table_function_s3_wip/config.xml
浏览文件 @
6b9397e8
...
...
@@ -2,8 +2,8 @@
<default_profile>
default
</default_profile>
<logger>
<level>
trace
</level>
<log>
/home/excitoon
/clickhouse-server.log
</log>
<errorlog>
/home/excitoon
/clickhouse-server.err.log
</errorlog>
<log>
~
/clickhouse-server.log
</log>
<errorlog>
~
/clickhouse-server.err.log
</errorlog>
<size>
1000M
</size>
<count>
10
</count>
</logger>
...
...
dbms/tests/queries/0_stateless/00950_table_function_s3_wip/test.csv
0 → 100644
浏览文件 @
6b9397e8
1,2,3
3,2,1
78,43,45
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录