Skip to content

Commit a3e8923

Browse files
committed
Review suggestions
1 parent f56adaa commit a3e8923

File tree

6 files changed

+9
-9
lines changed

6 files changed

+9
-9
lines changed

src/content/docs/analytics/analytics-engine/sampling.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ Here are some examples of how to express some common queries over sampled data.
7070
| Count events in a dataset | `count()` | `sum(_sample_interval)` |
7171
| Sum a quantity, for example, bytes | `sum(bytes)` | `sum(bytes * _sample_interval)` |
7272
| Average a quantity | `avg(bytes)` | `sum(bytes * _sample_interval) / sum(_sample_interval)` |
73-
| Compute quantiles | `quantile(0.50)(bytes)` | `quantileWeighted(0.50)(bytes, _sample_interval)` |
73+
| Compute quantiles | `quantile(0.50)(bytes)` | `quantileExactWeighted(0.50)(bytes, _sample_interval)` |
7474

7575
Note that the accuracy of results is not determined by the sample interval, similar to the mapping analogy mentioned earlier. A high sample interval can still provide precise results. Instead, accuracy depends on the total number of data points queried and their distribution.
7676

src/content/docs/analytics/analytics-engine/sql-api.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ Use the dashboard to create a token with permission to read analytics data on yo
3232

3333
## Querying the API
3434

35-
Submit the query text in the body of a `POST` request to the API address. The format of the data returned can be selected using the [`FORMAT` option](/analytics/analytics-engine/sql-reference/statements/#format-clause) in your query.
35+
Submit the query text in the body of a `POST` request to the API address. The format of the data returned can be selected using the [`FORMAT`](/analytics/analytics-engine/sql-reference/statements/#format-clause) option in your query.
3636

3737
You can use cURL to test the API as follows, replacing the `<account_id>` with your 32 character account ID (available in the dashboard) and the `<token>` with the token string you generated above.
3838

@@ -82,7 +82,7 @@ The rate at which the data is sampled is exposed via the `_sample_interval` colu
8282
| `SELECT SUM(double1) FROM ...` | `SELECT SUM(_sample_interval * double1) FROM ...` |
8383
| `SELECT AVG(double1) FROM ...` | `SELECT SUM(_sample_interval * double1) / SUM(_sample_interval) FROM ...` |
8484

85-
Additionally, the [QUANTILEWEIGHTED function](/analytics/analytics-engine/sql-reference/aggregate-functions/#quantileweighted) is designed to be used with sample interval as the third argument.
85+
Additionally, the [QUANTILEEXACTWEIGHTED](/analytics/analytics-engine/sql-reference/aggregate-functions/#quantileexactweighted) function is designed to be used with sample interval as the third argument.
8686

8787
## Example queries
8888

src/content/docs/analytics/analytics-engine/sql-reference/aggregate-functions.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@ count()
2020
count(DISTINCT column_name)
2121
```
2222

23-
Count is an aggregation function that returns the number of rows in each group or results set.
23+
`count` is an aggregation function that returns the number of rows in each group or results set.
2424

25-
Count can also be used to count the number of distinct (unique) values in each column:
25+
`count` can also be used to count the number of distinct (unique) values in each column:
2626

2727
Example:
2828

@@ -41,7 +41,7 @@ Usage:
4141
sum([DISTINCT] column_name)
4242
```
4343

44-
Sum is an aggregation function that returns the sum of column values across all rows in each group or results set. Sum also supports `DISTINCT`, but in this case it will only sum the unique values in the column.
44+
`sum` is an aggregation function that returns the sum of column values across all rows in each group or results set. Sum also supports `DISTINCT`, but in this case it will only sum the unique values in the column.
4545

4646
Example:
4747

src/content/docs/analytics/analytics-engine/sql-reference/mathematical-functions.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ Usage:
1919
intDiv(a, b)
2020
```
2121

22-
Divide a by b, rounding the answer down to the nearest whole number.
22+
Divide `a` by `b`, rounding the answer down to the nearest whole number.
2323

2424
## log <Badge text="New" variant="tip" size="small" />
2525

src/content/docs/analytics/analytics-engine/sql-reference/string-functions.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ Examples:
205205
SELECT format('blob1: {}', blob1) AS s FROM dataset;
206206
```
207207

208-
See also: [formatDateTime](/analytics/analytics-engine/sql-reference/date-time-functions/#formatdatetime)
208+
The [formatDateTime](/analytics/analytics-engine/sql-reference/date-time-functions/#formatdatetime) function might also be useful.
209209

210210
## extract
211211

src/content/docs/analytics/analytics-engine/worker-querying.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ const response = await fetch(API, {
3939
const responseJSON = await response.json();
4040
```
4141

42-
The data will be returned in the format described in the [FORMAT section of the API docs](/analytics/analytics-engine/sql-reference/statements/#json) allowing you to extract meta information about the names and types of returned columns in addition to the data itself and a row count.
42+
The data will be returned in the format described in the [FORMAT](/analytics/analytics-engine/sql-reference/statements/#json) section of the documentation, allowing you to extract meta information about the names and types of returned columns in addition to the data itself and a row count.
4343

4444
## Example Worker
4545

0 commit comments

Comments
 (0)