Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
2dot5
ClickHouse
提交
928641aa
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,发现更多精彩内容 >>
提交
928641aa
编写于
2月 24, 2021
作者:
N
Nikita Mikhailov
提交者:
Nikita Mikhaylov
3月 11, 2021
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
perimeter test
上级
a7427a9c
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
224 addition
and
1 deletion
+224
-1
tests/queries/0_stateless/01720_country_perimeter_and_area.reference
...es/0_stateless/01720_country_perimeter_and_area.reference
+214
-0
tests/queries/0_stateless/01720_country_perimeter_and_area.sh
...s/queries/0_stateless/01720_country_perimeter_and_area.sh
+10
-1
未找到文件。
tests/queries/0_stateless/01720_country_area.reference
→
tests/queries/0_stateless/01720_country_
perimeter_and_
area.reference
浏览文件 @
928641aa
Dhekelia Sovereign Base Area 118700.71332743947
Kyrgyzstan 3742755.7534551187
-------------------------------------
Dhekelia Sovereign Base Area 127533079.61976177
Kyrgyzstan 198994443077.2897
-------------------------------------
Aruba 71530.8169588391
Afghanistan 5224885.3545075
Albania 1090187.4767125107
Andorra 96608.22292958506
Ashmore and Cartier Islands 7075.513574803439
Austria 2079483.7812992004
Burundi 895672.5688732249
Belgium 1145320.4034536863
Benin 1996227.432786925
Burkina Faso 3272627.9559958726
Bulgaria 1966608.6256809386
Bahrain 135865.35144442634
Bosnia and Herzegovina 1314472.5089314817
Bajo Nuevo Bank (Petrel Is.) 798.5024071067089
Saint Barthelemy 21002.79956662945
Belarus 2738937.888108089
Bolivia 5901370.411116252
Barbados 89709.25425638427
Bhutan 1020220.3776075348
Botswana 3751204.2234685505
Central African Republic 4935021.375483403
Switzerland 1479396.111622348
Clipperton Island 8943.110565971054
Cameroon 5085955.35665887
Republic of Congo 4387669.050264364
Coral Sea Islands 741.2981931483673
Curaçao 132255.62069611502
Czech Republic 1728745.5762353
Djibouti 822712.605195561
Dominica 127657.27781178526
Algeria 7355738.071028232
Ethiopia 5222397.978393792
Georgia 1711022.4699848779
Ghana 2579014.0679307193
Gibraltar 8949.393307056409
Guinea 4038096.386119494
Gambia 1227696.9901731263
Guatemala 1928473.2813083928
Guam 129159.86773557645
Heard Island and McDonald Islands 110694.18305654383
Hungary 1670527.817374739
Isle of Man 119741.44999597034
Iraq 3484768.045518602
Israel 1231355.8285483832
Jamaica 640475.0393226973
Jersey 53782.09990861479
Jordan 1682881.4223134723
Baykonur Cosmodrome 285958.2051707919
Siachen Glacier 246828.859148545
Kosovo 559361.1922066971
Laos 4388593.852659078
Lebanon 616321.1250347663
Liberia 1882745.8183724133
Libya 6071430.840188828
Saint Lucia 106590.9440833618
Liechtenstein 59223.767796493725
Lesotho 784230.7102469816
Luxembourg 263259.6340049926
Latvia 1564007.8893204194
Saint Martin 41679.927927619785
Morocco 5613899.215291766
Monaco 16615.29788851603
Moldova 1324452.8981204226
Macedonia 719730.4433354989
Mali 7242105.215854456
Montenegro 749552.5839768916
Mongolia 7290806.371346894
Montserrat 42062.88573332693
Namibia 5366121.742836174
Niger 5586104.20515515
Norfolk Island 31266.364157565444
Niue 62852.941582168394
Nepal 2595695.4382788637
Nauru 19827.484632710733
Poland 3122958.4429358654
Paraguay 3484527.6286960323
Qatar 595374.2491908007
Romania 2813197.348484092
Rwanda 822216.3985928788
Western Sahara 2986353.4822476567
Scarborough Reef 1261.3332800666965
South Sudan 4822971.306241227
Senegal 3743831.189306996
Serranilla Bank 1518.3172992831614
Singapore 96986.71084909553
San Marino 29309.53472866584
Somaliland 1970173.4652249564
Somalia 4371311.2360761175
Republic of Serbia 1892739.48526361
Suriname 2050665.4319141763
Slovakia 1266500.5762728006
Slovenia 938838.9392746043
Swaziland 536594.8070282809
Sint Maarten 24187.85539367886
Syria 2273589.0858773263
Chad 5787996.089203358
Togo 1652100.5245926627
Uganda 2434653.1095533115
Uruguay 1963705.040506292
Vatican 427.24440132886207
Akrotiri Sovereign Base Area 85251.32121367387
Zambia 5601771.605527663
Zimbabwe 2897547.4523945283
-------------------------------------
Aruba 169577139.16920504
Afghanistan 642167900289.4739
Albania 28333199169.93513
...
...
@@ -103,3 +211,4 @@ Vatican 10535.27369925663
Akrotiri Sovereign Base Area 98415737.60517946
Zambia 751913038381.5402
Zimbabwe 389330493219.1703
-------------------------------------
tests/queries/0_stateless/01720_country_area.sh
→
tests/queries/0_stateless/01720_country_
perimeter_and_
area.sh
浏览文件 @
928641aa
...
...
@@ -7,10 +7,19 @@ CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
${
CLICKHOUSE_CLIENT
}
-q
"drop table if exists country_polygons;"
${
CLICKHOUSE_CLIENT
}
-q
"create table country_polygons(name String, p Array(Array(Tuple(Float64, Float64)))) engine=MergeTree() order by tuple();"
cat
${
CURDIR
}
/country_polygons.tsv |
${
CLICKHOUSE_CLIENT
}
-q
"insert into country_polygons format TSV"
${
CLICKHOUSE_CLIENT
}
-q
"SELECT name, polygonAreaGeographic(p) from country_polygons"
${
CLICKHOUSE_CLIENT
}
-q
"SELECT name, polygonPerimeterGeographic(p) from country_polygons"
${
CLICKHOUSE_CLIENT
}
-q
"SELECT '-------------------------------------'"
${
CLICKHOUSE_CLIENT
}
-q
"SELECT name, polygonAreaGeographic(p) from country_polygons"
${
CLICKHOUSE_CLIENT
}
-q
"SELECT '-------------------------------------'"
${
CLICKHOUSE_CLIENT
}
-q
"drop table if exists country_rings;"
${
CLICKHOUSE_CLIENT
}
-q
"create table country_rings(name String, p Array(Tuple(Float64, Float64))) engine=MergeTree() order by tuple();"
cat
${
CURDIR
}
/country_rings.tsv |
${
CLICKHOUSE_CLIENT
}
-q
"insert into country_rings format TSV"
${
CLICKHOUSE_CLIENT
}
-q
"SELECT name, polygonPerimeterGeographic(p) from country_rings"
${
CLICKHOUSE_CLIENT
}
-q
"SELECT '-------------------------------------'"
${
CLICKHOUSE_CLIENT
}
-q
"SELECT name, polygonAreaGeographic(p) from country_rings"
${
CLICKHOUSE_CLIENT
}
-q
"SELECT '-------------------------------------'"
${
CLICKHOUSE_CLIENT
}
-q
"drop table if exists country_rings;"
\ No newline at end of file
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录