mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-24 16:42:05 +00:00
edited ; in queries, edited after review
This commit is contained in:
parent
44714c3fa8
commit
ee4d3f7aa4
@ -1315,7 +1315,7 @@ Type: [Int](../../sql-reference/data-types/int-uint.md) or [Float](../../sql-ref
|
||||
Query:
|
||||
|
||||
``` sql
|
||||
SELECT arrayMin([1, 2, 4]) AS res
|
||||
SELECT arrayMin([1, 2, 4]) AS res;
|
||||
```
|
||||
|
||||
Result:
|
||||
@ -1329,7 +1329,7 @@ Result:
|
||||
Query:
|
||||
|
||||
``` sql
|
||||
SELECT arrayMin(x -> (-x), [1, 2, 4]) AS res
|
||||
SELECT arrayMin(x -> (-x), [1, 2, 4]) AS res;
|
||||
```
|
||||
|
||||
Result:
|
||||
@ -1367,7 +1367,7 @@ Type: [Int](../../sql-reference/data-types/int-uint.md) or [Float](../../sql-ref
|
||||
Query:
|
||||
|
||||
```sql
|
||||
SELECT arrayMax([1, 2, 4]) AS res
|
||||
SELECT arrayMax([1, 2, 4]) AS res;
|
||||
```
|
||||
|
||||
Result:
|
||||
@ -1381,7 +1381,7 @@ Result:
|
||||
Query:
|
||||
|
||||
``` sql
|
||||
SELECT arrayMax(x -> (-x), [1, 2, 4]) AS res
|
||||
SELECT arrayMax(x -> (-x), [1, 2, 4]) AS res;
|
||||
```
|
||||
|
||||
Result:
|
||||
@ -1419,7 +1419,7 @@ Type: [Int](../../sql-reference/data-types/int-uint.md) or [Float](../../sql-ref
|
||||
Query:
|
||||
|
||||
```sql
|
||||
SELECT arraySum([2,3]) AS res
|
||||
SELECT arraySum([2,3]) AS res;
|
||||
```
|
||||
|
||||
Result:
|
||||
@ -1433,7 +1433,7 @@ Result:
|
||||
Query:
|
||||
|
||||
``` sql
|
||||
SELECT arraySum(x -> x*x, [2, 3]) AS res
|
||||
SELECT arraySum(x -> x*x, [2, 3]) AS res;
|
||||
```
|
||||
|
||||
Result:
|
||||
|
@ -5,7 +5,7 @@ toc_title: Brown University Benchmark
|
||||
|
||||
# Brown University Benchmark
|
||||
|
||||
`MgBench` — это новый аналитический бенчмарк для данных журнала событий, сгенерированных машиной. Бенчмарк разработан [Andrew Crotty](http://cs.brown.edu/people/acrotty/).
|
||||
`MgBench` — это аналитический тест производительности для данных журнала событий, сгенерированных машиной. Бенчмарк разработан [Andrew Crotty](http://cs.brown.edu/people/acrotty/).
|
||||
|
||||
Скачать данные:
|
||||
```
|
||||
@ -74,7 +74,7 @@ ENGINE = MergeTree()
|
||||
ORDER BY (event_type, log_time);
|
||||
```
|
||||
|
||||
Insert data:
|
||||
Вставка данных:
|
||||
|
||||
```
|
||||
clickhouse-client --query "INSERT INTO mgbench.logs1 FORMAT CSVWithNames" < mgbench1.csv
|
||||
@ -82,7 +82,7 @@ clickhouse-client --query "INSERT INTO mgbench.logs2 FORMAT CSVWithNames" < mgbe
|
||||
clickhouse-client --query "INSERT INTO mgbench.logs3 FORMAT CSVWithNames" < mgbench3.csv
|
||||
```
|
||||
|
||||
Run benchmark queries:
|
||||
Запуск тестов производительности:
|
||||
```
|
||||
-- Q1.1: What is the CPU/network utilization for each web server since midnight?
|
||||
|
||||
|
@ -1162,7 +1162,7 @@ arrayMin(arr)
|
||||
Запрос:
|
||||
|
||||
``` sql
|
||||
SELECT arrayMin([1, 2, 4]) AS res
|
||||
SELECT arrayMin([1, 2, 4]) AS res;
|
||||
```
|
||||
|
||||
Результат:
|
||||
@ -1176,7 +1176,7 @@ SELECT arrayMin([1, 2, 4]) AS res
|
||||
Запрос:
|
||||
|
||||
``` sql
|
||||
SELECT arrayMin(x -> (-x), [1, 2, 4]) AS res
|
||||
SELECT arrayMin(x -> (-x), [1, 2, 4]) AS res;
|
||||
```
|
||||
|
||||
Результат:
|
||||
@ -1214,7 +1214,7 @@ arrayMax(arr)
|
||||
Запрос:
|
||||
|
||||
```sql
|
||||
SELECT arrayMax([1, 2, 4]) AS res
|
||||
SELECT arrayMax([1, 2, 4]) AS res;
|
||||
```
|
||||
|
||||
Результат:
|
||||
@ -1228,7 +1228,7 @@ SELECT arrayMax([1, 2, 4]) AS res
|
||||
Запрос:
|
||||
|
||||
``` sql
|
||||
SELECT arrayMax(x -> (-x), [1, 2, 4]) AS res
|
||||
SELECT arrayMax(x -> (-x), [1, 2, 4]) AS res;
|
||||
```
|
||||
|
||||
Результат:
|
||||
@ -1266,7 +1266,7 @@ arraySum(arr)
|
||||
Запрос:
|
||||
|
||||
```sql
|
||||
SELECT arraySum([2,3]) AS res
|
||||
SELECT arraySum([2,3]) AS res;
|
||||
```
|
||||
|
||||
Результат:
|
||||
@ -1280,7 +1280,7 @@ SELECT arraySum([2,3]) AS res
|
||||
Запрос:
|
||||
|
||||
``` sql
|
||||
SELECT arraySum(x -> x*x, [2, 3]) AS res
|
||||
SELECT arraySum(x -> x*x, [2, 3]) AS res;
|
||||
```
|
||||
|
||||
Результат:
|
||||
|
Loading…
Reference in New Issue
Block a user