Skip to content

DOCAPI-7415: Docs for the -Resample aggregate function combinator.#5972

Merged
blinkov merged 3 commits intoClickHouse:masterfrom
BayoNet:en-docs/DOCAPI-7415-resample
Aug 15, 2019
Merged

DOCAPI-7415: Docs for the -Resample aggregate function combinator.#5972
blinkov merged 3 commits intoClickHouse:masterfrom
BayoNet:en-docs/DOCAPI-7415-resample

Conversation

@BayoNet
Copy link
Copy Markdown
Contributor

@BayoNet BayoNet commented Jul 11, 2019

@BayoNet BayoNet added comp-documentation Documentation (docs, examples, READMEs). pr-documentation Documentation PRs for the specific code PR labels Jul 11, 2019
@BayoNet
Copy link
Copy Markdown
Contributor Author

BayoNet commented Jul 31, 2019

@blinkov Do you have any comments?


## -Resample

Allows to aggregate data, separating them into intervals.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this sentence sounds confusing and hardly makes it possible to understand the feature without reading further, let's make it more detailed?


**Parameters**

- `start` — Starting value of the whole required interval for the values of `resampling_key`.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • Starting/ending or start/end
  • We need to mention whether those borders are inclusive or not


- `start` — Starting value of the whole required interval for the values of `resampling_key`.
- `stop` — End value of the whole required interval for the values of `resampling_key`.
- `step` — Step for separating the whole interval by subintervals. The `aggFunction` is executed over these subintervals.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

...over each of those subintervals independently?

└───────────────────────────────────────────────┘
```

What do we see in the result?
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do we use this question style in docs?


What do we see in the result?

`Jonh` is out of the sample because he is too young. Other persons are distributed according to the specified age intervals.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

persons -> people?

@blinkov blinkov merged commit c4df1d9 into ClickHouse:master Aug 15, 2019
@BayoNet BayoNet deleted the en-docs/DOCAPI-7415-resample branch August 16, 2019 14:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

comp-documentation Documentation (docs, examples, READMEs). pr-documentation Documentation PRs for the specific code PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants