mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 15:12:02 +00:00
translate documentation for ontime
This commit is contained in:
parent
72fdc76239
commit
4d94a83d33
@ -1,9 +1,14 @@
|
||||
# 航班飞行数据 {#hang-ban-fei-xing-shu-ju}
|
||||
---
|
||||
toc_priority: 21
|
||||
toc_title: OnTime
|
||||
---
|
||||
|
||||
# OnTime {#ontime}
|
||||
|
||||
航班飞行数据有以下两个方式获取:
|
||||
|
||||
- 从原始数据导入
|
||||
- 下载预处理好的分区数据
|
||||
- 下载预处理好的数据
|
||||
|
||||
## 从原始数据导入 {#cong-yuan-shi-shu-ju-dao-ru}
|
||||
|
||||
@ -19,7 +24,7 @@ done
|
||||
done
|
||||
```
|
||||
|
||||
(引用 https://github.com/Percona-Lab/ontime-airline-performance/blob/master/download.sh )
|
||||
(参考 https://github.com/Percona-Lab/ontime-airline-performance/blob/master/download.sh )
|
||||
|
||||
创建表结构:
|
||||
|
||||
@ -157,8 +162,7 @@ $ clickhouse-client --query "select count(*) from datasets.ontime"
|
||||
```
|
||||
|
||||
!!! info "信息"
|
||||
如果要运行下面的SQL查询,必须使用完整的表名,
|
||||
`datasets.ontime`。
|
||||
如果要运行下面的SQL查询,必须使用完整的表名,`datasets.ontime`。
|
||||
|
||||
## 查询: {#cha-xun}
|
||||
|
||||
@ -356,7 +360,7 @@ ORDER by rate DESC
|
||||
LIMIT 1000;
|
||||
```
|
||||
|
||||
奖金:
|
||||
Bonus:
|
||||
|
||||
``` sql
|
||||
SELECT avg(cnt)
|
||||
@ -402,3 +406,5 @@ LIMIT 10;
|
||||
- https://www.percona.com/blog/2014/04/21/using-apache-hadoop-and-impala-together-with-mysql-for-data-analysis/
|
||||
- https://www.percona.com/blog/2016/01/07/apache-spark-with-air-ontime-performance-data/
|
||||
- http://nickmakos.blogspot.ru/2012/08/analyzing-air-traffic-performance-with.html
|
||||
|
||||
[原始文章](https://clickhouse.tech/docs/en/getting_started/example_datasets/ontime/) <!--hide-->
|
||||
|
Loading…
Reference in New Issue
Block a user