mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-22 15:42:02 +00:00
Merge remote-tracking branch 'upstream/master' into HEAD
This commit is contained in:
commit
6957241388
49
.github/workflows/backport_branches.yml
vendored
49
.github/workflows/backport_branches.yml
vendored
@ -159,33 +159,24 @@ jobs:
|
||||
############################################################################################
|
||||
##################################### BUILD REPORTER #######################################
|
||||
############################################################################################
|
||||
BuilderReport:
|
||||
Builds_Report:
|
||||
# run report check for failed builds to indicate the CI error
|
||||
if: ${{ !cancelled() }}
|
||||
needs:
|
||||
- RunConfig
|
||||
- BuilderDebAarch64
|
||||
- BuilderDebAsan
|
||||
- BuilderDebDebug
|
||||
- BuilderDebRelease
|
||||
- BuilderDebTsan
|
||||
uses: ./.github/workflows/reusable_test.yml
|
||||
with:
|
||||
test_name: ClickHouse build check
|
||||
runner_type: style-checker-aarch64
|
||||
data: ${{ needs.RunConfig.outputs.data }}
|
||||
BuilderSpecialReport:
|
||||
# run report check for failed builds to indicate the CI error
|
||||
if: ${{ !cancelled() }}
|
||||
needs:
|
||||
- RunConfig
|
||||
- BuilderBinDarwin
|
||||
- BuilderBinDarwinAarch64
|
||||
uses: ./.github/workflows/reusable_test.yml
|
||||
with:
|
||||
test_name: ClickHouse special build check
|
||||
runner_type: style-checker-aarch64
|
||||
data: ${{ needs.RunConfig.outputs.data }}
|
||||
if: ${{ !cancelled() && needs.RunConfig.result == 'success' && contains(fromJson(needs.RunConfig.outputs.data).jobs_data.jobs_to_do, 'Builds') }}
|
||||
needs: [RunConfig, BuilderDebAarch64, BuilderDebAsan, BuilderDebDebug, BuilderDebRelease, BuilderDebTsan, BuilderBinDarwin, BuilderBinDarwinAarch64]
|
||||
runs-on: [self-hosted, style-checker-aarch64]
|
||||
steps:
|
||||
- name: Check out repository code
|
||||
uses: ClickHouse/checkout@v1
|
||||
- name: Download reports
|
||||
run: |
|
||||
python3 "$GITHUB_WORKSPACE/tests/ci/ci.py" --infile ${{ toJson(needs.RunConfig.outputs.data) }} --pre --job-name Builds
|
||||
- name: Builds report
|
||||
run: |
|
||||
cd "$GITHUB_WORKSPACE/tests/ci"
|
||||
python3 ./build_report_check.py --reports package_release package_aarch64 package_asan package_tsan package_debug binary_darwin binary_darwin_aarch64
|
||||
- name: Set status
|
||||
run: |
|
||||
python3 "$GITHUB_WORKSPACE/tests/ci/ci.py" --infile ${{ toJson(needs.RunConfig.outputs.data) }} --post --job-name Builds
|
||||
############################################################################################
|
||||
#################################### INSTALL PACKAGES ######################################
|
||||
############################################################################################
|
||||
@ -256,8 +247,7 @@ jobs:
|
||||
FinishCheck:
|
||||
if: ${{ !failure() && !cancelled() }}
|
||||
needs:
|
||||
- BuilderReport
|
||||
- BuilderSpecialReport
|
||||
- Builds_Report
|
||||
- FunctionalStatelessTestAsan
|
||||
- FunctionalStatefulTestDebug
|
||||
- StressTestTsan
|
||||
@ -273,5 +263,8 @@ jobs:
|
||||
- name: Finish label
|
||||
run: |
|
||||
cd "$GITHUB_WORKSPACE/tests/ci"
|
||||
# update mergeable check
|
||||
python3 merge_pr.py --set-ci-status --wf-status ${{ contains(needs.*.result, 'failure') && 'failure' || 'success' }}
|
||||
# update overall ci report
|
||||
python3 finish_check.py --wf-status ${{ contains(needs.*.result, 'failure') && 'failure' || 'success' }}
|
||||
python3 merge_pr.py
|
||||
|
29
.github/workflows/create_release.yml
vendored
Normal file
29
.github/workflows/create_release.yml
vendored
Normal file
@ -0,0 +1,29 @@
|
||||
name: CreateRelease
|
||||
|
||||
concurrency:
|
||||
group: release
|
||||
|
||||
'on':
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
sha:
|
||||
description: 'The SHA hash of the commit from which to create the release'
|
||||
required: true
|
||||
type: string
|
||||
type:
|
||||
description: 'The type of release: "new" for a new release or "patch" for a patch release'
|
||||
required: true
|
||||
type: choice
|
||||
options:
|
||||
- new
|
||||
- patch
|
||||
|
||||
jobs:
|
||||
Release:
|
||||
runs-on: [self-hosted, style-checker-aarch64]
|
||||
steps:
|
||||
- name: Check out repository code
|
||||
uses: ClickHouse/checkout@v1
|
||||
- name: Print greeting
|
||||
run: |
|
||||
python3 ./tests/ci/release.py --commit ${{ inputs.sha }} --type ${{ inputs.type }} --dry-run
|
4
.github/workflows/master.yml
vendored
4
.github/workflows/master.yml
vendored
@ -117,11 +117,11 @@ jobs:
|
||||
# Reports should run even if Builds_1/2 fail - run them separately, not in Tests_1/2/3
|
||||
Builds_Report:
|
||||
# run report check for failed builds to indicate the CI error
|
||||
if: ${{ !cancelled() && needs.RunConfig.result == 'success' && contains(fromJson(needs.RunConfig.outputs.data).jobs_data.jobs_to_do, 'ClickHouse build check') }}
|
||||
if: ${{ !cancelled() && needs.RunConfig.result == 'success' && contains(fromJson(needs.RunConfig.outputs.data).jobs_data.jobs_to_do, 'Builds') }}
|
||||
needs: [RunConfig, Builds_1, Builds_2]
|
||||
uses: ./.github/workflows/reusable_test.yml
|
||||
with:
|
||||
test_name: ClickHouse build check
|
||||
test_name: Builds
|
||||
runner_type: style-checker-aarch64
|
||||
data: ${{ needs.RunConfig.outputs.data }}
|
||||
|
||||
|
15
.github/workflows/merge_queue.yml
vendored
15
.github/workflows/merge_queue.yml
vendored
@ -96,20 +96,15 @@ jobs:
|
||||
stage: Tests_1
|
||||
data: ${{ needs.RunConfig.outputs.data }}
|
||||
|
||||
################################# Stage Final #################################
|
||||
#
|
||||
FinishCheck:
|
||||
if: ${{ !cancelled() }}
|
||||
CheckReadyForMerge:
|
||||
if: ${{ !cancelled() && needs.StyleCheck.result == 'success' }}
|
||||
# Test_2 or Test_3 must not have jobs required for Mergeable check
|
||||
needs: [RunConfig, BuildDockers, StyleCheck, FastTest, Builds_1, Tests_1]
|
||||
runs-on: [self-hosted, style-checker-aarch64]
|
||||
steps:
|
||||
- name: Check out repository code
|
||||
uses: ClickHouse/checkout@v1
|
||||
- name: Check sync status
|
||||
- name: Check and set merge status
|
||||
run: |
|
||||
cd "$GITHUB_WORKSPACE/tests/ci"
|
||||
python3 sync_pr.py --status
|
||||
- name: Finish label
|
||||
run: |
|
||||
cd "$GITHUB_WORKSPACE/tests/ci"
|
||||
python3 finish_check.py --wf-status ${{ contains(needs.*.result, 'failure') && 'failure' || 'success' }}
|
||||
python3 merge_pr.py --set-ci-status --wf-status ${{ contains(needs.*.result, 'failure') && 'failure' || 'success' }}
|
||||
|
4
.github/workflows/pull_request.yml
vendored
4
.github/workflows/pull_request.yml
vendored
@ -146,11 +146,11 @@ jobs:
|
||||
# Reports should run even if Builds_1/2 fail - run them separately (not in Tests_1/2/3)
|
||||
Builds_Report:
|
||||
# run report check for failed builds to indicate the CI error
|
||||
if: ${{ !cancelled() && needs.RunConfig.result == 'success' && contains(fromJson(needs.RunConfig.outputs.data).jobs_data.jobs_to_do, 'ClickHouse build check') }}
|
||||
if: ${{ !cancelled() && needs.RunConfig.result == 'success' && contains(fromJson(needs.RunConfig.outputs.data).jobs_data.jobs_to_do, 'Builds') }}
|
||||
needs: [RunConfig, StyleCheck, Builds_1, Builds_2]
|
||||
uses: ./.github/workflows/reusable_test.yml
|
||||
with:
|
||||
test_name: ClickHouse build check
|
||||
test_name: Builds
|
||||
runner_type: style-checker-aarch64
|
||||
data: ${{ needs.RunConfig.outputs.data }}
|
||||
|
||||
|
51
.github/workflows/release_branches.yml
vendored
51
.github/workflows/release_branches.yml
vendored
@ -176,35 +176,24 @@ jobs:
|
||||
############################################################################################
|
||||
##################################### BUILD REPORTER #######################################
|
||||
############################################################################################
|
||||
BuilderReport:
|
||||
Builds_Report:
|
||||
# run report check for failed builds to indicate the CI error
|
||||
if: ${{ !cancelled() }}
|
||||
needs:
|
||||
- RunConfig
|
||||
- BuilderDebRelease
|
||||
- BuilderDebAarch64
|
||||
- BuilderDebAsan
|
||||
- BuilderDebTsan
|
||||
- BuilderDebUBsan
|
||||
- BuilderDebMsan
|
||||
- BuilderDebDebug
|
||||
uses: ./.github/workflows/reusable_test.yml
|
||||
with:
|
||||
test_name: ClickHouse build check
|
||||
runner_type: style-checker-aarch64
|
||||
data: ${{ needs.RunConfig.outputs.data }}
|
||||
BuilderSpecialReport:
|
||||
# run report check for failed builds to indicate the CI error
|
||||
if: ${{ !cancelled() }}
|
||||
needs:
|
||||
- RunConfig
|
||||
- BuilderBinDarwin
|
||||
- BuilderBinDarwinAarch64
|
||||
uses: ./.github/workflows/reusable_test.yml
|
||||
with:
|
||||
test_name: ClickHouse special build check
|
||||
runner_type: style-checker-aarch64
|
||||
data: ${{ needs.RunConfig.outputs.data }}
|
||||
if: ${{ !cancelled() && needs.RunConfig.result == 'success' && contains(fromJson(needs.RunConfig.outputs.data).jobs_data.jobs_to_do, 'Builds') }}
|
||||
needs: [RunConfig, BuilderDebRelease, BuilderDebAarch64, BuilderDebAsan, BuilderDebUBsan, BuilderDebMsan, BuilderDebTsan, BuilderDebDebug, BuilderBinDarwin, BuilderBinDarwinAarch64]
|
||||
runs-on: [self-hosted, style-checker-aarch64]
|
||||
steps:
|
||||
- name: Check out repository code
|
||||
uses: ClickHouse/checkout@v1
|
||||
- name: Download reports
|
||||
run: |
|
||||
python3 "$GITHUB_WORKSPACE/tests/ci/ci.py" --infile ${{ toJson(needs.RunConfig.outputs.data) }} --pre --job-name Builds
|
||||
- name: Builds report
|
||||
run: |
|
||||
cd "$GITHUB_WORKSPACE/tests/ci"
|
||||
python3 ./build_report_check.py --reports package_release package_aarch64 package_asan package_msan package_ubsan package_tsan package_debug binary_darwin binary_darwin_aarch64
|
||||
- name: Set status
|
||||
run: |
|
||||
python3 "$GITHUB_WORKSPACE/tests/ci/ci.py" --infile ${{ toJson(needs.RunConfig.outputs.data) }} --post --job-name Builds
|
||||
MarkReleaseReady:
|
||||
if: ${{ !failure() && !cancelled() }}
|
||||
needs:
|
||||
@ -460,8 +449,7 @@ jobs:
|
||||
needs:
|
||||
- DockerServerImage
|
||||
- DockerKeeperImage
|
||||
- BuilderReport
|
||||
- BuilderSpecialReport
|
||||
- Builds_Report
|
||||
- MarkReleaseReady
|
||||
- FunctionalStatelessTestDebug
|
||||
- FunctionalStatelessTestRelease
|
||||
@ -496,4 +484,7 @@ jobs:
|
||||
- name: Finish label
|
||||
run: |
|
||||
cd "$GITHUB_WORKSPACE/tests/ci"
|
||||
# update mergeable check
|
||||
python3 merge_pr.py --set-ci-status --wf-status ${{ contains(needs.*.result, 'failure') && 'failure' || 'success' }}
|
||||
# update overall ci report
|
||||
python3 finish_check.py --wf-status ${{ contains(needs.*.result, 'failure') && 'failure' || 'success' }}
|
||||
|
10
CHANGELOG.md
10
CHANGELOG.md
@ -29,17 +29,17 @@
|
||||
* Added `merge_workload` and `mutation_workload` settings to regulate how resources are utilized and shared between merges, mutations and other workloads. [#64061](https://github.com/ClickHouse/ClickHouse/pull/64061) ([Sergei Trifonov](https://github.com/serxa)).
|
||||
* Add support for comparing IPv4 and IPv6 types using the `=` operator. [#64292](https://github.com/ClickHouse/ClickHouse/pull/64292) ([Francisco J. Jurado Moreno](https://github.com/Beetelbrox)).
|
||||
* Allow to store named collections in zookeeper. [#64574](https://github.com/ClickHouse/ClickHouse/pull/64574) ([Kseniia Sumarokova](https://github.com/kssenii)).
|
||||
* Support decimal arguments in binary math functions (pow(), atan2(), max2, min2(), hypot(). [#64582](https://github.com/ClickHouse/ClickHouse/pull/64582) ([Mikhail Gorshkov](https://github.com/mgorshkov)).
|
||||
* Support decimal arguments in binary math functions (pow, atan2, max2, min2, hypot). [#64582](https://github.com/ClickHouse/ClickHouse/pull/64582) ([Mikhail Gorshkov](https://github.com/mgorshkov)).
|
||||
* Add support for index analysis over `hilbertEncode`. [#64662](https://github.com/ClickHouse/ClickHouse/pull/64662) ([Artem Mustafin](https://github.com/Artemmm91)).
|
||||
* Added SQL functions `parseReadableSize` (along with `OrNull` and `OrZero` variants). [#64742](https://github.com/ClickHouse/ClickHouse/pull/64742) ([Francisco J. Jurado Moreno](https://github.com/Beetelbrox)).
|
||||
* Add server settings `max_table_num_to_throw` and `max_database_num_to_throw` to limit the number of databases or tables on `CREATE` queries. [#64781](https://github.com/ClickHouse/ClickHouse/pull/64781) ([Xu Jia](https://github.com/XuJia0210)).
|
||||
* Add _time virtual column to file alike storages (s3/file/hdfs/url/azureBlobStorage). [#64947](https://github.com/ClickHouse/ClickHouse/pull/64947) ([Ilya Golshtein](https://github.com/ilejn)).
|
||||
* Introduced new functions `base64UrlEncode`, `base64UrlDecode` and `tryBase64UrlDecode`. [#64991](https://github.com/ClickHouse/ClickHouse/pull/64991) ([Mikhail Gorshkov](https://github.com/mgorshkov)).
|
||||
* Introduced new functions `base64URLEncode`, `base64URLDecode` and `tryBase64URLDecode`. [#64991](https://github.com/ClickHouse/ClickHouse/pull/64991) ([Mikhail Gorshkov](https://github.com/mgorshkov)).
|
||||
* Add new function `editDistanceUTF8`, which calculates the [edit distance](https://en.wikipedia.org/wiki/Edit_distance) between two UTF8 strings. [#65269](https://github.com/ClickHouse/ClickHouse/pull/65269) ([LiuNeng](https://github.com/liuneng1994)).
|
||||
|
||||
#### Performance Improvement
|
||||
* Add a native parquet reader, which can read parquet binary to ClickHouse Columns directly. It's controlled by the setting `input_format_parquet_use_native_reader` (disabled by default). [#60361](https://github.com/ClickHouse/ClickHouse/pull/60361) ([ZhiHong Zhang](https://github.com/copperybean)).
|
||||
* Reduce the number of virtual function calls in ColumnNullable::size(). [#60556](https://github.com/ClickHouse/ClickHouse/pull/60556) ([HappenLee](https://github.com/HappenLee)).
|
||||
* Reduce the number of virtual function calls in ColumnNullable::size. [#60556](https://github.com/ClickHouse/ClickHouse/pull/60556) ([HappenLee](https://github.com/HappenLee)).
|
||||
* Speedup `splitByRegexp` when the regular expression argument is a single-character. [#62696](https://github.com/ClickHouse/ClickHouse/pull/62696) ([Robert Schulze](https://github.com/rschu1ze)).
|
||||
* Speed up FixedHashTable by keeping track of the min and max keys used. This allows to reduce the number of cells that need to be verified. [#62746](https://github.com/ClickHouse/ClickHouse/pull/62746) ([Jiebin Sun](https://github.com/jiebinn)).
|
||||
* Optimize the resolution of in(LowCardinality, ConstantSet). [#64060](https://github.com/ClickHouse/ClickHouse/pull/64060) ([Zhiguo Zhou](https://github.com/ZhiguoZh)).
|
||||
@ -51,7 +51,7 @@
|
||||
* Improve function least/greatest for nullable numberic type arguments. [#64668](https://github.com/ClickHouse/ClickHouse/pull/64668) ([KevinyhZou](https://github.com/KevinyhZou)).
|
||||
* Allow merging two consequent `FilterSteps` of a query plan. This improves filter-push-down optimization if the filter condition can be pushed down from the parent step. [#64760](https://github.com/ClickHouse/ClickHouse/pull/64760) ([Nikolai Kochetov](https://github.com/KochetovNicolai)).
|
||||
* Remove bad optimization in vertical final implementation and re-enable vertical final algorithm by default. [#64783](https://github.com/ClickHouse/ClickHouse/pull/64783) ([Duc Canh Le](https://github.com/canhld94)).
|
||||
* Remove ALIAS nodes from the filter expression. This slightly improves performance for queries with `PREWHERE` (with new analyzer). [#64793](https://github.com/ClickHouse/ClickHouse/pull/64793) ([Nikolai Kochetov](https://github.com/KochetovNicolai)).
|
||||
* Remove ALIAS nodes from the filter expression. This slightly improves performance for queries with `PREWHERE` (with the new analyzer). [#64793](https://github.com/ClickHouse/ClickHouse/pull/64793) ([Nikolai Kochetov](https://github.com/KochetovNicolai)).
|
||||
* Fix performance regression in cross join introduced in [#60459](https://github.com/ClickHouse/ClickHouse/issues/60459) (24.5). [#65243](https://github.com/ClickHouse/ClickHouse/pull/65243) ([Nikita Taranov](https://github.com/nickitat)).
|
||||
|
||||
#### Improvement
|
||||
@ -63,7 +63,7 @@
|
||||
* Reduce the memory usage when using Azure object storage by using fixed memory allocation, avoiding the allocation of an extra buffer. [#63160](https://github.com/ClickHouse/ClickHouse/pull/63160) ([SmitaRKulkarni](https://github.com/SmitaRKulkarni)).
|
||||
* Several minor corner case fixes to proxy support & tunneling. [#63427](https://github.com/ClickHouse/ClickHouse/pull/63427) ([Arthur Passos](https://github.com/arthurpassos)).
|
||||
* Add `http_response_headers` setting to support custom response headers in custom HTTP handlers. [#63562](https://github.com/ClickHouse/ClickHouse/pull/63562) ([Grigorii](https://github.com/GSokol)).
|
||||
* Improve io_uring resubmits visibility. Rename profile event `IOUringSQEsResubmits` -> `IOUringSQEsResubmitsAsync` and add a new one `IOUringSQEsResubmitsSync`. [#63699](https://github.com/ClickHouse/ClickHouse/pull/63699) ([Tomer Shafir](https://github.com/tomershafir)).
|
||||
* Improve io_uring resubmit visibility. Rename profile event `IOUringSQEsResubmits` -> `IOUringSQEsResubmitsAsync` and add a new one `IOUringSQEsResubmitsSync`. [#63699](https://github.com/ClickHouse/ClickHouse/pull/63699) ([Tomer Shafir](https://github.com/tomershafir)).
|
||||
* Introduce assertions to verify all functions are called with columns of the right size. [#63723](https://github.com/ClickHouse/ClickHouse/pull/63723) ([Raúl Marín](https://github.com/Algunenano)).
|
||||
* `SHOW CREATE TABLE` executed on top of system tables will now show the super handy comment unique for each table which will explain why this table is needed. [#63788](https://github.com/ClickHouse/ClickHouse/pull/63788) ([Nikita Mikhaylov](https://github.com/nikitamikhaylov)).
|
||||
* Added setting `metadata_storage_type` to keep free space on metadata storage disk. [#64128](https://github.com/ClickHouse/ClickHouse/pull/64128) ([MikhailBurdukov](https://github.com/MikhailBurdukov)).
|
||||
|
@ -6,6 +6,9 @@ namespace
|
||||
{
|
||||
std::string getFQDNOrHostNameImpl()
|
||||
{
|
||||
#if defined(OS_DARWIN)
|
||||
return Poco::Net::DNS::hostName();
|
||||
#else
|
||||
try
|
||||
{
|
||||
return Poco::Net::DNS::thisHost().name();
|
||||
@ -14,6 +17,7 @@ namespace
|
||||
{
|
||||
return Poco::Net::DNS::hostName();
|
||||
}
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -34,9 +34,9 @@ if (OS_LINUX)
|
||||
# avoid spurious latencies and additional work associated with
|
||||
# MADV_DONTNEED. See
|
||||
# https://github.com/ClickHouse/ClickHouse/issues/11121 for motivation.
|
||||
set (JEMALLOC_CONFIG_MALLOC_CONF "percpu_arena:percpu,oversize_threshold:0,muzzy_decay_ms:0,dirty_decay_ms:5000")
|
||||
set (JEMALLOC_CONFIG_MALLOC_CONF "percpu_arena:percpu,oversize_threshold:0,muzzy_decay_ms:0,dirty_decay_ms:5000,prof:true,prof_active:false,background_thread:true")
|
||||
else()
|
||||
set (JEMALLOC_CONFIG_MALLOC_CONF "oversize_threshold:0,muzzy_decay_ms:0,dirty_decay_ms:5000")
|
||||
set (JEMALLOC_CONFIG_MALLOC_CONF "oversize_threshold:0,muzzy_decay_ms:0,dirty_decay_ms:5000,prof:true,prof_active:false,background_thread:true")
|
||||
endif()
|
||||
# CACHE variable is empty to allow changing defaults without the necessity
|
||||
# to purge cache
|
||||
|
@ -37,6 +37,7 @@ RUN pip3 install \
|
||||
tqdm==4.66.4 \
|
||||
types-requests \
|
||||
unidiff \
|
||||
jwt \
|
||||
&& rm -rf /root/.cache/pip
|
||||
|
||||
RUN echo "en_US.UTF-8 UTF-8" > /etc/locale.gen && locale-gen en_US.UTF-8
|
||||
|
@ -267,7 +267,7 @@ A pull request can be created even if the work is not completed yet. In this cas
|
||||
|
||||
Testing will commence as soon as ClickHouse employees label your PR with a tag “can be tested”. The results of some first checks (e.g. code style) will come in within several minutes. Build check results will arrive within half an hour. And the main set of tests will report itself within an hour.
|
||||
|
||||
The system will prepare ClickHouse binary builds for your pull request individually. To retrieve these builds click the “Details” link next to “ClickHouse build check” entry in the list of checks. There you will find direct links to the built .deb packages of ClickHouse which you can deploy even on your production servers (if you have no fear).
|
||||
The system will prepare ClickHouse binary builds for your pull request individually. To retrieve these builds click the “Details” link next to “Builds” entry in the list of checks. There you will find direct links to the built .deb packages of ClickHouse which you can deploy even on your production servers (if you have no fear).
|
||||
|
||||
Most probably some of the builds will fail at first times. This is due to the fact that we check builds both with gcc as well as with clang, with almost all of existing warnings (always with the `-Werror` flag) enabled for clang. On that same page, you can find all of the build logs so that you do not have to build ClickHouse in all of the possible ways.
|
||||
|
||||
|
@ -28,7 +28,7 @@ run, for example, the test `01428_hash_set_nan_key`, change to the repository
|
||||
folder and run the following command:
|
||||
|
||||
```
|
||||
PATH=$PATH:<path to clickhouse-client> tests/clickhouse-test 01428_hash_set_nan_key
|
||||
PATH=<path to clickhouse-client>:$PATH tests/clickhouse-test 01428_hash_set_nan_key
|
||||
```
|
||||
|
||||
Test results (`stderr` and `stdout`) are written to files `01428_hash_set_nan_key.[stderr|stdout]` which
|
||||
|
@ -28,6 +28,8 @@ CREATE TABLE s3_queue_engine_table (name String, value UInt32)
|
||||
[s3queue_cleanup_interval_max_ms = 30000,]
|
||||
```
|
||||
|
||||
Starting with `24.7` settings without `s3queue_` prefix are also supported.
|
||||
|
||||
**Engine parameters**
|
||||
|
||||
- `path` — Bucket url with path to file. Supports following wildcards in readonly mode: `*`, `**`, `?`, `{abc,def}` and `{N..M}` where `N`, `M` — numbers, `'abc'`, `'def'` — strings. For more information see [below](#wildcards-in-path).
|
||||
|
@ -314,7 +314,7 @@ For example, to download a aarch64 binary for ClickHouse v23.4, follow these ste
|
||||
- Find the GitHub pull request for release v23.4: [Release pull request for branch 23.4](https://github.com/ClickHouse/ClickHouse/pull/49238)
|
||||
- Click "Commits", then click a commit similar to "Update autogenerated version to 23.4.2.1 and contributors" for the particular version you like to install.
|
||||
- Click the green check / yellow dot / red cross to open the list of CI checks.
|
||||
- Click "Details" next to "ClickHouse Build Check" in the list, it will open a page similar to [this page](https://s3.amazonaws.com/clickhouse-test-reports/46793/b460eb70bf29b19eadd19a1f959b15d186705394/clickhouse_build_check/report.html)
|
||||
- Click "Details" next to "Builds" in the list, it will open a page similar to [this page](https://s3.amazonaws.com/clickhouse-test-reports/46793/b460eb70bf29b19eadd19a1f959b15d186705394/clickhouse_build_check/report.html)
|
||||
- Find the rows with compiler = "clang-*-aarch64" - there are multiple rows.
|
||||
- Download the artifacts for these builds.
|
||||
|
||||
|
@ -193,6 +193,7 @@ You can pass parameters to `clickhouse-client` (all parameters have a default va
|
||||
- `--hardware-utilization` — Print hardware utilization information in progress bar.
|
||||
- `--print-profile-events` – Print `ProfileEvents` packets.
|
||||
- `--profile-events-delay-ms` – Delay between printing `ProfileEvents` packets (-1 - print only totals, 0 - print every single packet).
|
||||
- `--jwt` – If specified, enables authorization via JSON Web Token. Server JWT authorization is available only in ClickHouse Cloud.
|
||||
|
||||
Instead of `--host`, `--port`, `--user` and `--password` options, ClickHouse client also supports connection strings (see next section).
|
||||
|
||||
|
@ -2169,6 +2169,7 @@ To exchange data with Hadoop, you can use [HDFS table engine](/docs/en/engines/t
|
||||
- [output_format_parquet_compression_method](/docs/en/operations/settings/settings-formats.md/#output_format_parquet_compression_method) - compression method used in output Parquet format. Default value - `lz4`.
|
||||
- [input_format_parquet_max_block_size](/docs/en/operations/settings/settings-formats.md/#input_format_parquet_max_block_size) - Max block row size for parquet reader. Default value - `65409`.
|
||||
- [input_format_parquet_prefer_block_bytes](/docs/en/operations/settings/settings-formats.md/#input_format_parquet_prefer_block_bytes) - Average block bytes output by parquet reader. Default value - `16744704`.
|
||||
- [output_format_parquet_write_page_index](/docs/en/operations/settings/settings-formats.md/#input_format_parquet_max_block_size) - Add a possibility to write page index into parquet files. Need to disable `output_format_parquet_use_custom_encoder` at present. Default value - `true`.
|
||||
|
||||
## ParquetMetadata {data-format-parquet-metadata}
|
||||
|
||||
|
@ -5,6 +5,10 @@ sidebar_label: "Named collections"
|
||||
title: "Named collections"
|
||||
---
|
||||
|
||||
import CloudNotSupportedBadge from '@theme/badges/CloudNotSupportedBadge';
|
||||
|
||||
<CloudNotSupportedBadge />
|
||||
|
||||
Named collections provide a way to store collections of key-value pairs to be
|
||||
used to configure integrations with external sources. You can use named collections with
|
||||
dictionaries, tables, table functions, and object storage.
|
||||
|
@ -498,6 +498,8 @@ Default: 0.9
|
||||
Interval in seconds during which the server's maximum allowed memory consumption is adjusted by the corresponding threshold in cgroups. (see
|
||||
settings `cgroup_memory_watcher_hard_limit_ratio` and `cgroup_memory_watcher_soft_limit_ratio`).
|
||||
|
||||
To disable the cgroup observer, set this value to `0`.
|
||||
|
||||
Type: UInt64
|
||||
|
||||
Default: 15
|
||||
@ -1463,6 +1465,9 @@ Keys:
|
||||
- `size` – Size of the file. Applies to `log` and `errorlog`. Once the file reaches `size`, ClickHouse archives and renames it, and creates a new log file in its place.
|
||||
- `count` – The number of archived log files that ClickHouse stores.
|
||||
- `console` – Send `log` and `errorlog` to the console instead of file. To enable, set to `1` or `true`.
|
||||
- `console_log_level` – Logging level for console. Default to `level`.
|
||||
- `use_syslog` - Log to syslog as well.
|
||||
- `syslog_level` - Logging level for logging to syslog.
|
||||
- `stream_compress` – Compress `log` and `errorlog` with `lz4` stream compression. To enable, set to `1` or `true`.
|
||||
- `formatting` – Specify log format to be printed in console log (currently only `json` supported).
|
||||
|
||||
|
@ -1428,6 +1428,13 @@ Average block bytes output by parquet reader. Lowering the configuration in the
|
||||
|
||||
Default value: `65409 * 256 = 16744704`
|
||||
|
||||
### output_format_parquet_write_page_index {#input_format_parquet_max_block_size}
|
||||
|
||||
Could add page index into parquet files. To enable this, need set `output_format_parquet_use_custom_encoder`=`false` and
|
||||
`output_format_parquet_write_page_index`=`true`.
|
||||
|
||||
Enable by default.
|
||||
|
||||
## Hive format settings {#hive-format-settings}
|
||||
|
||||
### input_format_hive_text_fields_delimiter {#input_format_hive_text_fields_delimiter}
|
||||
|
@ -36,9 +36,24 @@ $ echo 0 | sudo tee /proc/sys/vm/overcommit_memory
|
||||
Use `perf top` to watch the time spent in the kernel for memory management.
|
||||
Permanent huge pages also do not need to be allocated.
|
||||
|
||||
:::warning
|
||||
If your system has less than 16 GB of RAM, you may experience various memory exceptions because default settings do not match this amount of memory. The recommended amount of RAM is 32 GB or more. You can use ClickHouse in a system with a small amount of RAM, even with 2 GB of RAM, but it requires additional tuning and can ingest at a low rate.
|
||||
:::
|
||||
### Using less than 16GB of RAM
|
||||
|
||||
The recommended amount of RAM is 32 GB or more.
|
||||
|
||||
If your system has less than 16 GB of RAM, you may experience various memory exceptions because default settings do not match this amount of memory. You can use ClickHouse in a system with a small amount of RAM (as low as 2 GB), but these setups require additional tuning and can only ingest at a low rate.
|
||||
|
||||
When using ClickHouse with less than 16GB of RAM, we recommend the following:
|
||||
|
||||
- Lower the size of the mark cache in the `config.xml`. It can be set as low as 500 MB, but it cannot be set to zero.
|
||||
- Lower the number of query processing threads down to `1`.
|
||||
- Lower the `max_block_size` to `8192`. Values as low as `1024` can still be practical.
|
||||
- Lower `max_download_threads` to `1`.
|
||||
- Set `input_format_parallel_parsing` and `output_format_parallel_formatting` to `0`.
|
||||
|
||||
Additional notes:
|
||||
- To flush the memory cached by the memory allocator, you can run the `SYSTEM JEMALLOC PURGE`
|
||||
command.
|
||||
- We do not recommend using S3 or Kafka integrations on low-memory machines because they require significant memory for buffers.
|
||||
|
||||
## Storage Subsystem {#storage-subsystem}
|
||||
|
||||
|
@ -236,10 +236,10 @@ Read 2 rows, 32.00 B in 0.000 sec., 5182 rows/sec., 80.97 KiB/sec.
|
||||
Previous example is the same as:
|
||||
|
||||
``` bash
|
||||
$ echo -e "1,2\n3,4" | clickhouse-local --query "
|
||||
$ echo -e "1,2\n3,4" | clickhouse-local -n --query "
|
||||
CREATE TABLE table (a Int64, b Int64) ENGINE = File(CSV, stdin);
|
||||
SELECT a, b FROM table;
|
||||
DROP TABLE table"
|
||||
DROP TABLE table;"
|
||||
Read 2 rows, 32.00 B in 0.000 sec., 4987 rows/sec., 77.93 KiB/sec.
|
||||
1 2
|
||||
3 4
|
||||
|
@ -1,6 +1,6 @@
|
||||
---
|
||||
slug: /en/sql-reference/aggregate-functions/reference/analysis_of_variance
|
||||
sidebar_position: 6
|
||||
sidebar_position: 101
|
||||
---
|
||||
|
||||
# analysisOfVariance
|
||||
|
@ -1,6 +1,6 @@
|
||||
---
|
||||
slug: /en/sql-reference/aggregate-functions/reference/any
|
||||
sidebar_position: 6
|
||||
sidebar_position: 102
|
||||
---
|
||||
|
||||
# any
|
||||
|
@ -1,6 +1,6 @@
|
||||
---
|
||||
slug: /en/sql-reference/aggregate-functions/reference/anyheavy
|
||||
sidebar_position: 103
|
||||
sidebar_position: 104
|
||||
---
|
||||
|
||||
# anyHeavy
|
||||
|
@ -1,6 +1,6 @@
|
||||
---
|
||||
slug: /en/sql-reference/aggregate-functions/reference/anylast
|
||||
sidebar_position: 104
|
||||
sidebar_position: 105
|
||||
---
|
||||
|
||||
# anyLast
|
||||
|
@ -1,6 +1,6 @@
|
||||
---
|
||||
slug: /en/sql-reference/aggregate-functions/reference/anylast_respect_nulls
|
||||
sidebar_position: 104
|
||||
sidebar_position: 106
|
||||
---
|
||||
|
||||
# anyLast_respect_nulls
|
||||
|
@ -1,6 +1,6 @@
|
||||
---
|
||||
slug: /en/sql-reference/aggregate-functions/reference/approxtopk
|
||||
sidebar_position: 212
|
||||
sidebar_position: 107
|
||||
---
|
||||
|
||||
# approx_top_k
|
||||
|
@ -1,6 +1,6 @@
|
||||
---
|
||||
slug: /en/sql-reference/aggregate-functions/reference/approxtopsum
|
||||
sidebar_position: 212
|
||||
sidebar_position: 108
|
||||
---
|
||||
|
||||
# approx_top_sum
|
||||
|
@ -1,6 +1,6 @@
|
||||
---
|
||||
slug: /en/sql-reference/aggregate-functions/reference/argmax
|
||||
sidebar_position: 106
|
||||
sidebar_position: 109
|
||||
---
|
||||
|
||||
# argMax
|
||||
|
@ -1,6 +1,6 @@
|
||||
---
|
||||
slug: /en/sql-reference/aggregate-functions/reference/argmin
|
||||
sidebar_position: 105
|
||||
sidebar_position: 110
|
||||
---
|
||||
|
||||
# argMin
|
||||
|
@ -1,6 +1,6 @@
|
||||
---
|
||||
slug: /en/sql-reference/aggregate-functions/reference/array_concat_agg
|
||||
sidebar_position: 110
|
||||
sidebar_position: 111
|
||||
---
|
||||
|
||||
# array_concat_agg
|
||||
|
@ -1,6 +1,6 @@
|
||||
---
|
||||
slug: /en/sql-reference/aggregate-functions/reference/avg
|
||||
sidebar_position: 5
|
||||
sidebar_position: 112
|
||||
---
|
||||
|
||||
# avg
|
||||
|
@ -1,6 +1,6 @@
|
||||
---
|
||||
slug: /en/sql-reference/aggregate-functions/reference/avgweighted
|
||||
sidebar_position: 107
|
||||
sidebar_position: 113
|
||||
---
|
||||
|
||||
# avgWeighted
|
||||
|
@ -1,6 +1,6 @@
|
||||
---
|
||||
slug: /en/sql-reference/aggregate-functions/reference/boundingRatio
|
||||
sidebar_position: 2
|
||||
sidebar_position: 114
|
||||
title: boundingRatio
|
||||
---
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
---
|
||||
slug: /en/sql-reference/aggregate-functions/reference/categoricalinformationvalue
|
||||
sidebar_position: 250
|
||||
sidebar_position: 115
|
||||
title: categoricalInformationValue
|
||||
---
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
---
|
||||
slug: /en/sql-reference/aggregate-functions/reference/contingency
|
||||
sidebar_position: 350
|
||||
sidebar_position: 116
|
||||
---
|
||||
|
||||
# contingency
|
||||
|
@ -1,6 +1,6 @@
|
||||
---
|
||||
slug: /en/sql-reference/aggregate-functions/reference/corr
|
||||
sidebar_position: 107
|
||||
sidebar_position: 117
|
||||
---
|
||||
|
||||
# corr
|
||||
|
@ -1,6 +1,6 @@
|
||||
---
|
||||
slug: /en/sql-reference/aggregate-functions/reference/corrmatrix
|
||||
sidebar_position: 108
|
||||
sidebar_position: 118
|
||||
---
|
||||
|
||||
# corrMatrix
|
||||
|
@ -1,6 +1,6 @@
|
||||
---
|
||||
slug: /en/sql-reference/aggregate-functions/reference/corrstable
|
||||
sidebar_position: 107
|
||||
sidebar_position: 119
|
||||
---
|
||||
|
||||
# corrStable
|
||||
|
@ -1,6 +1,6 @@
|
||||
---
|
||||
slug: /en/sql-reference/aggregate-functions/reference/count
|
||||
sidebar_position: 1
|
||||
sidebar_position: 120
|
||||
---
|
||||
|
||||
# count
|
||||
|
@ -1,6 +1,6 @@
|
||||
---
|
||||
slug: /en/sql-reference/aggregate-functions/reference/covarpop
|
||||
sidebar_position: 37
|
||||
sidebar_position: 121
|
||||
---
|
||||
|
||||
# covarPop
|
||||
|
@ -1,6 +1,6 @@
|
||||
---
|
||||
slug: /en/sql-reference/aggregate-functions/reference/covarpopmatrix
|
||||
sidebar_position: 36
|
||||
sidebar_position: 122
|
||||
---
|
||||
|
||||
# covarPopMatrix
|
||||
|
@ -1,6 +1,6 @@
|
||||
---
|
||||
slug: /en/sql-reference/aggregate-functions/reference/covarpopstable
|
||||
sidebar_position: 36
|
||||
sidebar_position: 123
|
||||
---
|
||||
|
||||
# covarPopStable
|
||||
|
@ -1,6 +1,6 @@
|
||||
---
|
||||
slug: /en/sql-reference/aggregate-functions/reference/covarsamp
|
||||
sidebar_position: 37
|
||||
sidebar_position: 124
|
||||
---
|
||||
|
||||
# covarSamp
|
||||
|
@ -1,6 +1,6 @@
|
||||
---
|
||||
slug: /en/sql-reference/aggregate-functions/reference/covarsampmatrix
|
||||
sidebar_position: 38
|
||||
sidebar_position: 125
|
||||
---
|
||||
|
||||
# covarSampMatrix
|
||||
|
@ -1,6 +1,6 @@
|
||||
---
|
||||
slug: /en/sql-reference/aggregate-functions/reference/covarsampstable
|
||||
sidebar_position: 37
|
||||
sidebar_position: 126
|
||||
---
|
||||
|
||||
# covarSampStable
|
||||
|
@ -1,6 +1,6 @@
|
||||
---
|
||||
slug: /en/sql-reference/aggregate-functions/reference/cramersv
|
||||
sidebar_position: 351
|
||||
sidebar_position: 127
|
||||
---
|
||||
|
||||
# cramersV
|
||||
|
@ -1,6 +1,6 @@
|
||||
---
|
||||
slug: /en/sql-reference/aggregate-functions/reference/cramersvbiascorrected
|
||||
sidebar_position: 352
|
||||
sidebar_position: 128
|
||||
---
|
||||
|
||||
# cramersVBiasCorrected
|
||||
|
@ -1,6 +1,6 @@
|
||||
---
|
||||
slug: /en/sql-reference/aggregate-functions/reference/deltasum
|
||||
sidebar_position: 141
|
||||
sidebar_position: 129
|
||||
---
|
||||
|
||||
# deltaSum
|
||||
|
@ -1,6 +1,6 @@
|
||||
---
|
||||
slug: /en/sql-reference/aggregate-functions/reference/deltasumtimestamp
|
||||
sidebar_position: 141
|
||||
sidebar_position: 130
|
||||
title: deltaSumTimestamp
|
||||
---
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
---
|
||||
slug: /en/sql-reference/aggregate-functions/reference/entropy
|
||||
sidebar_position: 302
|
||||
sidebar_position: 131
|
||||
---
|
||||
|
||||
# entropy
|
||||
|
@ -1,7 +1,7 @@
|
||||
---
|
||||
slug: /en/sql-reference/aggregate-functions/reference/exponentialmovingaverage
|
||||
sidebar_position: 108
|
||||
sidebar_title: exponentialMovingAverage
|
||||
slug: /en/sql-reference/aggregate-functions/reference/exponentialMovingAverage
|
||||
sidebar_position: 132
|
||||
title: exponentialMovingAverage
|
||||
---
|
||||
|
||||
## exponentialMovingAverage
|
||||
@ -96,56 +96,56 @@ Result:
|
||||
|
||||
``` text
|
||||
┌─value─┬─time─┬─round(exp_smooth, 3)─┬─bar────────────────────────────────────────┐
|
||||
│ 1 │ 0 │ 0.067 │ ███▎ │
|
||||
│ 1 │ 0 │ 0.067 │ ███▎ │
|
||||
│ 0 │ 1 │ 0.062 │ ███ │
|
||||
│ 0 │ 2 │ 0.058 │ ██▊ │
|
||||
│ 0 │ 3 │ 0.054 │ ██▋ │
|
||||
│ 0 │ 2 │ 0.058 │ ██▊ │
|
||||
│ 0 │ 3 │ 0.054 │ ██▋ │
|
||||
│ 0 │ 4 │ 0.051 │ ██▌ │
|
||||
│ 0 │ 5 │ 0.047 │ ██▎ │
|
||||
│ 0 │ 6 │ 0.044 │ ██▏ │
|
||||
│ 0 │ 5 │ 0.047 │ ██▎ │
|
||||
│ 0 │ 6 │ 0.044 │ ██▏ │
|
||||
│ 0 │ 7 │ 0.041 │ ██ │
|
||||
│ 0 │ 8 │ 0.038 │ █▊ │
|
||||
│ 0 │ 9 │ 0.036 │ █▋ │
|
||||
│ 0 │ 10 │ 0.033 │ █▋ │
|
||||
│ 0 │ 8 │ 0.038 │ █▊ │
|
||||
│ 0 │ 9 │ 0.036 │ █▋ │
|
||||
│ 0 │ 10 │ 0.033 │ █▋ │
|
||||
│ 0 │ 11 │ 0.031 │ █▌ │
|
||||
│ 0 │ 12 │ 0.029 │ █▍ │
|
||||
│ 0 │ 13 │ 0.027 │ █▎ │
|
||||
│ 0 │ 14 │ 0.025 │ █▎ │
|
||||
│ 0 │ 15 │ 0.024 │ █▏ │
|
||||
│ 0 │ 12 │ 0.029 │ █▍ │
|
||||
│ 0 │ 13 │ 0.027 │ █▎ │
|
||||
│ 0 │ 14 │ 0.025 │ █▎ │
|
||||
│ 0 │ 15 │ 0.024 │ █▏ │
|
||||
│ 0 │ 16 │ 0.022 │ █ │
|
||||
│ 0 │ 17 │ 0.021 │ █ │
|
||||
│ 0 │ 18 │ 0.019 │ ▊ │
|
||||
│ 0 │ 19 │ 0.018 │ ▊ │
|
||||
│ 0 │ 20 │ 0.017 │ ▋ │
|
||||
│ 0 │ 21 │ 0.016 │ ▋ │
|
||||
│ 0 │ 22 │ 0.015 │ ▋ │
|
||||
│ 0 │ 23 │ 0.014 │ ▋ │
|
||||
│ 0 │ 24 │ 0.013 │ ▋ │
|
||||
│ 1 │ 25 │ 0.079 │ ███▊ │
|
||||
│ 0 │ 18 │ 0.019 │ ▊ │
|
||||
│ 0 │ 19 │ 0.018 │ ▊ │
|
||||
│ 0 │ 20 │ 0.017 │ ▋ │
|
||||
│ 0 │ 21 │ 0.016 │ ▋ │
|
||||
│ 0 │ 22 │ 0.015 │ ▋ │
|
||||
│ 0 │ 23 │ 0.014 │ ▋ │
|
||||
│ 0 │ 24 │ 0.013 │ ▋ │
|
||||
│ 1 │ 25 │ 0.079 │ ███▊ │
|
||||
│ 1 │ 26 │ 0.14 │ ███████ │
|
||||
│ 1 │ 27 │ 0.198 │ █████████▊ │
|
||||
│ 1 │ 27 │ 0.198 │ █████████▊ │
|
||||
│ 1 │ 28 │ 0.252 │ ████████████▌ │
|
||||
│ 1 │ 29 │ 0.302 │ ███████████████ │
|
||||
│ 1 │ 30 │ 0.349 │ █████████████████▍ │
|
||||
│ 1 │ 30 │ 0.349 │ █████████████████▍ │
|
||||
│ 1 │ 31 │ 0.392 │ ███████████████████▌ │
|
||||
│ 1 │ 32 │ 0.433 │ █████████████████████▋ │
|
||||
│ 1 │ 32 │ 0.433 │ █████████████████████▋ │
|
||||
│ 1 │ 33 │ 0.471 │ ███████████████████████▌ │
|
||||
│ 1 │ 34 │ 0.506 │ █████████████████████████▎ │
|
||||
│ 1 │ 35 │ 0.539 │ ██████████████████████████▊ │
|
||||
│ 1 │ 34 │ 0.506 │ █████████████████████████▎ │
|
||||
│ 1 │ 35 │ 0.539 │ ██████████████████████████▊ │
|
||||
│ 1 │ 36 │ 0.57 │ ████████████████████████████▌ │
|
||||
│ 1 │ 37 │ 0.599 │ █████████████████████████████▊ │
|
||||
│ 1 │ 38 │ 0.626 │ ███████████████████████████████▎ │
|
||||
│ 1 │ 37 │ 0.599 │ █████████████████████████████▊ │
|
||||
│ 1 │ 38 │ 0.626 │ ███████████████████████████████▎ │
|
||||
│ 1 │ 39 │ 0.651 │ ████████████████████████████████▌ │
|
||||
│ 1 │ 40 │ 0.674 │ █████████████████████████████████▋ │
|
||||
│ 1 │ 41 │ 0.696 │ ██████████████████████████████████▋ │
|
||||
│ 1 │ 42 │ 0.716 │ ███████████████████████████████████▋ │
|
||||
│ 1 │ 43 │ 0.735 │ ████████████████████████████████████▋ │
|
||||
│ 1 │ 44 │ 0.753 │ █████████████████████████████████████▋ │
|
||||
│ 1 │ 45 │ 0.77 │ ██████████████████████████████████████▍ │
|
||||
│ 1 │ 46 │ 0.785 │ ███████████████████████████████████████▎ │
|
||||
│ 1 │ 47 │ 0.8 │ ███████████████████████████████████████▊ │
|
||||
│ 1 │ 48 │ 0.813 │ ████████████████████████████████████████▋ │
|
||||
│ 1 │ 49 │ 0.825 │ █████████████████████████████████████████▎│
|
||||
│ 1 │ 40 │ 0.674 │ █████████████████████████████████▋ │
|
||||
│ 1 │ 41 │ 0.696 │ ██████████████████████████████████▋ │
|
||||
│ 1 │ 42 │ 0.716 │ ███████████████████████████████████▋ │
|
||||
│ 1 │ 43 │ 0.735 │ ████████████████████████████████████▋ │
|
||||
│ 1 │ 44 │ 0.753 │ █████████████████████████████████████▋ │
|
||||
│ 1 │ 45 │ 0.77 │ ██████████████████████████████████████▍ │
|
||||
│ 1 │ 46 │ 0.785 │ ███████████████████████████████████████▎ │
|
||||
│ 1 │ 47 │ 0.8 │ ███████████████████████████████████████▊ │
|
||||
│ 1 │ 48 │ 0.813 │ ████████████████████████████████████████▋ │
|
||||
│ 1 │ 49 │ 0.825 │ █████████████████████████████████████████▎ │
|
||||
└───────┴──────┴──────────────────────┴────────────────────────────────────────────┘
|
||||
```
|
||||
|
||||
|
@ -0,0 +1,105 @@
|
||||
---
|
||||
slug: /en/sql-reference/aggregate-functions/reference/exponentialTimeDecayedAvg
|
||||
sidebar_position: 133
|
||||
title: exponentialTimeDecayedAvg
|
||||
---
|
||||
|
||||
## exponentialTimeDecayedAvg
|
||||
|
||||
Returns the exponentially smoothed weighted moving average of values of a time series at point `t` in time.
|
||||
|
||||
**Syntax**
|
||||
|
||||
```sql
|
||||
exponentialTimeDecayedAvg(x)(v, t)
|
||||
```
|
||||
|
||||
**Arguments**
|
||||
|
||||
- `v` — Value. [Integer](../../../sql-reference/data-types/int-uint.md), [Float](../../../sql-reference/data-types/float.md) or [Decimal](../../../sql-reference/data-types/decimal.md).
|
||||
- `t` — Time. [Integer](../../../sql-reference/data-types/int-uint.md), [Float](../../../sql-reference/data-types/float.md) or [Decimal](../../../sql-reference/data-types/decimal.md), [DateTime](../../data-types/datetime.md), [DateTime64](../../data-types/datetime64.md).
|
||||
|
||||
**Parameters**
|
||||
|
||||
- `x` — Half-life period. [Integer](../../../sql-reference/data-types/int-uint.md), [Float](../../../sql-reference/data-types/float.md) or [Decimal](../../../sql-reference/data-types/decimal.md).
|
||||
|
||||
**Returned values**
|
||||
|
||||
- Returns an exponentially smoothed weighted moving average at index `t` in time. [Float64](../../data-types/float.md).
|
||||
|
||||
**Examples**
|
||||
|
||||
Query:
|
||||
|
||||
```sql
|
||||
SELECT
|
||||
value,
|
||||
time,
|
||||
round(exp_smooth, 3),
|
||||
bar(exp_smooth, 0, 5, 50) AS bar
|
||||
FROM
|
||||
(
|
||||
SELECT
|
||||
(number = 0) OR (number >= 25) AS value,
|
||||
number AS time,
|
||||
exponentialTimeDecayedAvg(10)(value, time) OVER (ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW) AS exp_smooth
|
||||
FROM numbers(50)
|
||||
);
|
||||
```
|
||||
|
||||
Response:
|
||||
|
||||
```sql
|
||||
┌─value─┬─time─┬─round(exp_smooth, 3)─┬─bar────────┐
|
||||
1. │ 1 │ 0 │ 1 │ ██████████ │
|
||||
2. │ 0 │ 1 │ 0.475 │ ████▊ │
|
||||
3. │ 0 │ 2 │ 0.301 │ ███ │
|
||||
4. │ 0 │ 3 │ 0.214 │ ██▏ │
|
||||
5. │ 0 │ 4 │ 0.162 │ █▌ │
|
||||
6. │ 0 │ 5 │ 0.128 │ █▎ │
|
||||
7. │ 0 │ 6 │ 0.104 │ █ │
|
||||
8. │ 0 │ 7 │ 0.086 │ ▊ │
|
||||
9. │ 0 │ 8 │ 0.072 │ ▋ │
|
||||
0. │ 0 │ 9 │ 0.061 │ ▌ │
|
||||
1. │ 0 │ 10 │ 0.052 │ ▌ │
|
||||
2. │ 0 │ 11 │ 0.045 │ ▍ │
|
||||
3. │ 0 │ 12 │ 0.039 │ ▍ │
|
||||
4. │ 0 │ 13 │ 0.034 │ ▎ │
|
||||
5. │ 0 │ 14 │ 0.03 │ ▎ │
|
||||
6. │ 0 │ 15 │ 0.027 │ ▎ │
|
||||
7. │ 0 │ 16 │ 0.024 │ ▏ │
|
||||
8. │ 0 │ 17 │ 0.021 │ ▏ │
|
||||
9. │ 0 │ 18 │ 0.018 │ ▏ │
|
||||
0. │ 0 │ 19 │ 0.016 │ ▏ │
|
||||
1. │ 0 │ 20 │ 0.015 │ ▏ │
|
||||
2. │ 0 │ 21 │ 0.013 │ ▏ │
|
||||
3. │ 0 │ 22 │ 0.012 │ │
|
||||
4. │ 0 │ 23 │ 0.01 │ │
|
||||
5. │ 0 │ 24 │ 0.009 │ │
|
||||
6. │ 1 │ 25 │ 0.111 │ █ │
|
||||
7. │ 1 │ 26 │ 0.202 │ ██ │
|
||||
8. │ 1 │ 27 │ 0.283 │ ██▊ │
|
||||
9. │ 1 │ 28 │ 0.355 │ ███▌ │
|
||||
0. │ 1 │ 29 │ 0.42 │ ████▏ │
|
||||
1. │ 1 │ 30 │ 0.477 │ ████▊ │
|
||||
2. │ 1 │ 31 │ 0.529 │ █████▎ │
|
||||
3. │ 1 │ 32 │ 0.576 │ █████▊ │
|
||||
4. │ 1 │ 33 │ 0.618 │ ██████▏ │
|
||||
5. │ 1 │ 34 │ 0.655 │ ██████▌ │
|
||||
6. │ 1 │ 35 │ 0.689 │ ██████▉ │
|
||||
7. │ 1 │ 36 │ 0.719 │ ███████▏ │
|
||||
8. │ 1 │ 37 │ 0.747 │ ███████▍ │
|
||||
9. │ 1 │ 38 │ 0.771 │ ███████▋ │
|
||||
0. │ 1 │ 39 │ 0.793 │ ███████▉ │
|
||||
1. │ 1 │ 40 │ 0.813 │ ████████▏ │
|
||||
2. │ 1 │ 41 │ 0.831 │ ████████▎ │
|
||||
3. │ 1 │ 42 │ 0.848 │ ████████▍ │
|
||||
4. │ 1 │ 43 │ 0.862 │ ████████▌ │
|
||||
5. │ 1 │ 44 │ 0.876 │ ████████▊ │
|
||||
6. │ 1 │ 45 │ 0.888 │ ████████▉ │
|
||||
7. │ 1 │ 46 │ 0.898 │ ████████▉ │
|
||||
8. │ 1 │ 47 │ 0.908 │ █████████ │
|
||||
9. │ 1 │ 48 │ 0.917 │ █████████▏ │
|
||||
0. │ 1 │ 49 │ 0.925 │ █████████▏ │
|
||||
└───────┴──────┴──────────────────────┴────────────┘
|
||||
```
|
@ -0,0 +1,104 @@
|
||||
---
|
||||
slug: /en/sql-reference/aggregate-functions/reference/exponentialTimeDecayedCount
|
||||
sidebar_position: 134
|
||||
title: exponentialTimeDecayedCount
|
||||
---
|
||||
|
||||
## exponentialTimeDecayedCount
|
||||
|
||||
Returns the cumulative exponential decay over a time series at the index `t` in time.
|
||||
|
||||
**Syntax**
|
||||
|
||||
```sql
|
||||
exponentialTimeDecayedCount(x)(t)
|
||||
```
|
||||
|
||||
**Arguments**
|
||||
|
||||
- `t` — Time. [Integer](../../../sql-reference/data-types/int-uint.md), [Float](../../../sql-reference/data-types/float.md) or [Decimal](../../../sql-reference/data-types/decimal.md), [DateTime](../../data-types/datetime.md), [DateTime64](../../data-types/datetime64.md).
|
||||
|
||||
**Parameters**
|
||||
|
||||
- `x` — Half-life period. [Integer](../../../sql-reference/data-types/int-uint.md), [Float](../../../sql-reference/data-types/float.md) or [Decimal](../../../sql-reference/data-types/decimal.md).
|
||||
|
||||
**Returned values**
|
||||
|
||||
- Returns the cumulative exponential decay at the given point in time. [Float64](../../data-types/float.md).
|
||||
|
||||
**Example**
|
||||
|
||||
Query:
|
||||
|
||||
```sql
|
||||
SELECT
|
||||
value,
|
||||
time,
|
||||
round(exp_smooth, 3),
|
||||
bar(exp_smooth, 0, 20, 50) AS bar
|
||||
FROM
|
||||
(
|
||||
SELECT
|
||||
(number % 5) = 0 AS value,
|
||||
number AS time,
|
||||
exponentialTimeDecayedCount(10)(time) OVER (ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW) AS exp_smooth
|
||||
FROM numbers(50)
|
||||
);
|
||||
```
|
||||
|
||||
Result:
|
||||
|
||||
```response
|
||||
┌─value─┬─time─┬─round(exp_smooth, 3)─┬─bar────────────────────────┐
|
||||
1. │ 1 │ 0 │ 1 │ ██▌ │
|
||||
2. │ 0 │ 1 │ 1.905 │ ████▊ │
|
||||
3. │ 0 │ 2 │ 2.724 │ ██████▊ │
|
||||
4. │ 0 │ 3 │ 3.464 │ ████████▋ │
|
||||
5. │ 0 │ 4 │ 4.135 │ ██████████▎ │
|
||||
6. │ 1 │ 5 │ 4.741 │ ███████████▊ │
|
||||
7. │ 0 │ 6 │ 5.29 │ █████████████▏ │
|
||||
8. │ 0 │ 7 │ 5.787 │ ██████████████▍ │
|
||||
9. │ 0 │ 8 │ 6.236 │ ███████████████▌ │
|
||||
10. │ 0 │ 9 │ 6.643 │ ████████████████▌ │
|
||||
11. │ 1 │ 10 │ 7.01 │ █████████████████▌ │
|
||||
12. │ 0 │ 11 │ 7.343 │ ██████████████████▎ │
|
||||
13. │ 0 │ 12 │ 7.644 │ ███████████████████ │
|
||||
14. │ 0 │ 13 │ 7.917 │ ███████████████████▊ │
|
||||
15. │ 0 │ 14 │ 8.164 │ ████████████████████▍ │
|
||||
16. │ 1 │ 15 │ 8.387 │ ████████████████████▉ │
|
||||
17. │ 0 │ 16 │ 8.589 │ █████████████████████▍ │
|
||||
18. │ 0 │ 17 │ 8.771 │ █████████████████████▉ │
|
||||
19. │ 0 │ 18 │ 8.937 │ ██████████████████████▎ │
|
||||
20. │ 0 │ 19 │ 9.086 │ ██████████████████████▋ │
|
||||
21. │ 1 │ 20 │ 9.222 │ ███████████████████████ │
|
||||
22. │ 0 │ 21 │ 9.344 │ ███████████████████████▎ │
|
||||
23. │ 0 │ 22 │ 9.455 │ ███████████████████████▋ │
|
||||
24. │ 0 │ 23 │ 9.555 │ ███████████████████████▉ │
|
||||
25. │ 0 │ 24 │ 9.646 │ ████████████████████████ │
|
||||
26. │ 1 │ 25 │ 9.728 │ ████████████████████████▎ │
|
||||
27. │ 0 │ 26 │ 9.802 │ ████████████████████████▌ │
|
||||
28. │ 0 │ 27 │ 9.869 │ ████████████████████████▋ │
|
||||
29. │ 0 │ 28 │ 9.93 │ ████████████████████████▊ │
|
||||
30. │ 0 │ 29 │ 9.985 │ ████████████████████████▉ │
|
||||
31. │ 1 │ 30 │ 10.035 │ █████████████████████████ │
|
||||
32. │ 0 │ 31 │ 10.08 │ █████████████████████████▏ │
|
||||
33. │ 0 │ 32 │ 10.121 │ █████████████████████████▎ │
|
||||
34. │ 0 │ 33 │ 10.158 │ █████████████████████████▍ │
|
||||
35. │ 0 │ 34 │ 10.191 │ █████████████████████████▍ │
|
||||
36. │ 1 │ 35 │ 10.221 │ █████████████████████████▌ │
|
||||
37. │ 0 │ 36 │ 10.249 │ █████████████████████████▌ │
|
||||
38. │ 0 │ 37 │ 10.273 │ █████████████████████████▋ │
|
||||
39. │ 0 │ 38 │ 10.296 │ █████████████████████████▋ │
|
||||
40. │ 0 │ 39 │ 10.316 │ █████████████████████████▊ │
|
||||
41. │ 1 │ 40 │ 10.334 │ █████████████████████████▊ │
|
||||
42. │ 0 │ 41 │ 10.351 │ █████████████████████████▉ │
|
||||
43. │ 0 │ 42 │ 10.366 │ █████████████████████████▉ │
|
||||
44. │ 0 │ 43 │ 10.379 │ █████████████████████████▉ │
|
||||
45. │ 0 │ 44 │ 10.392 │ █████████████████████████▉ │
|
||||
46. │ 1 │ 45 │ 10.403 │ ██████████████████████████ │
|
||||
47. │ 0 │ 46 │ 10.413 │ ██████████████████████████ │
|
||||
48. │ 0 │ 47 │ 10.422 │ ██████████████████████████ │
|
||||
49. │ 0 │ 48 │ 10.43 │ ██████████████████████████ │
|
||||
50. │ 0 │ 49 │ 10.438 │ ██████████████████████████ │
|
||||
└───────┴──────┴──────────────────────┴────────────────────────────┘
|
||||
```
|
@ -0,0 +1,105 @@
|
||||
---
|
||||
slug: /en/sql-reference/aggregate-functions/reference/exponentialTimeDecayedMax
|
||||
sidebar_position: 135
|
||||
title: exponentialTimeDecayedMax
|
||||
---
|
||||
|
||||
## exponentialTimeDecayedMax
|
||||
|
||||
Returns the maximum of the computed exponentially smoothed moving average at index `t` in time with that at `t-1`.
|
||||
|
||||
**Syntax**
|
||||
|
||||
```sql
|
||||
exponentialTimeDecayedMax(x)(value, timeunit)
|
||||
```
|
||||
|
||||
**Arguments**
|
||||
|
||||
- `value` — Value. [Integer](../../../sql-reference/data-types/int-uint.md), [Float](../../../sql-reference/data-types/float.md) or [Decimal](../../../sql-reference/data-types/decimal.md).
|
||||
- `timeunit` — Timeunit. [Integer](../../../sql-reference/data-types/int-uint.md), [Float](../../../sql-reference/data-types/float.md) or [Decimal](../../../sql-reference/data-types/decimal.md), [DateTime](../../data-types/datetime.md), [DateTime64](../../data-types/datetime64.md).
|
||||
|
||||
**Parameters**
|
||||
|
||||
- `x` — Half-life period. [Integer](../../../sql-reference/data-types/int-uint.md), [Float](../../../sql-reference/data-types/float.md) or [Decimal](../../../sql-reference/data-types/decimal.md).
|
||||
|
||||
**Returned values**
|
||||
|
||||
- Returns the maximum of the exponentially smoothed weighted moving average at `t` and `t-1`. [Float64](../../data-types/float.md).
|
||||
|
||||
**Example**
|
||||
|
||||
Query:
|
||||
|
||||
```sql
|
||||
SELECT
|
||||
value,
|
||||
time,
|
||||
round(exp_smooth, 3),
|
||||
bar(exp_smooth, 0, 5, 50) AS bar
|
||||
FROM
|
||||
(
|
||||
SELECT
|
||||
(number = 0) OR (number >= 25) AS value,
|
||||
number AS time,
|
||||
exponentialTimeDecayedMax(10)(value, time) OVER (ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW) AS exp_smooth
|
||||
FROM numbers(50)
|
||||
);
|
||||
```
|
||||
|
||||
Result:
|
||||
|
||||
```response
|
||||
┌─value─┬─time─┬─round(exp_smooth, 3)─┬─bar────────┐
|
||||
1. │ 1 │ 0 │ 1 │ ██████████ │
|
||||
2. │ 0 │ 1 │ 0.905 │ █████████ │
|
||||
3. │ 0 │ 2 │ 0.819 │ ████████▏ │
|
||||
4. │ 0 │ 3 │ 0.741 │ ███████▍ │
|
||||
5. │ 0 │ 4 │ 0.67 │ ██████▋ │
|
||||
6. │ 0 │ 5 │ 0.607 │ ██████ │
|
||||
7. │ 0 │ 6 │ 0.549 │ █████▍ │
|
||||
8. │ 0 │ 7 │ 0.497 │ ████▉ │
|
||||
9. │ 0 │ 8 │ 0.449 │ ████▍ │
|
||||
10. │ 0 │ 9 │ 0.407 │ ████ │
|
||||
11. │ 0 │ 10 │ 0.368 │ ███▋ │
|
||||
12. │ 0 │ 11 │ 0.333 │ ███▎ │
|
||||
13. │ 0 │ 12 │ 0.301 │ ███ │
|
||||
14. │ 0 │ 13 │ 0.273 │ ██▋ │
|
||||
15. │ 0 │ 14 │ 0.247 │ ██▍ │
|
||||
16. │ 0 │ 15 │ 0.223 │ ██▏ │
|
||||
17. │ 0 │ 16 │ 0.202 │ ██ │
|
||||
18. │ 0 │ 17 │ 0.183 │ █▊ │
|
||||
19. │ 0 │ 18 │ 0.165 │ █▋ │
|
||||
20. │ 0 │ 19 │ 0.15 │ █▍ │
|
||||
21. │ 0 │ 20 │ 0.135 │ █▎ │
|
||||
22. │ 0 │ 21 │ 0.122 │ █▏ │
|
||||
23. │ 0 │ 22 │ 0.111 │ █ │
|
||||
24. │ 0 │ 23 │ 0.1 │ █ │
|
||||
25. │ 0 │ 24 │ 0.091 │ ▉ │
|
||||
26. │ 1 │ 25 │ 1 │ ██████████ │
|
||||
27. │ 1 │ 26 │ 1 │ ██████████ │
|
||||
28. │ 1 │ 27 │ 1 │ ██████████ │
|
||||
29. │ 1 │ 28 │ 1 │ ██████████ │
|
||||
30. │ 1 │ 29 │ 1 │ ██████████ │
|
||||
31. │ 1 │ 30 │ 1 │ ██████████ │
|
||||
32. │ 1 │ 31 │ 1 │ ██████████ │
|
||||
33. │ 1 │ 32 │ 1 │ ██████████ │
|
||||
34. │ 1 │ 33 │ 1 │ ██████████ │
|
||||
35. │ 1 │ 34 │ 1 │ ██████████ │
|
||||
36. │ 1 │ 35 │ 1 │ ██████████ │
|
||||
37. │ 1 │ 36 │ 1 │ ██████████ │
|
||||
38. │ 1 │ 37 │ 1 │ ██████████ │
|
||||
39. │ 1 │ 38 │ 1 │ ██████████ │
|
||||
40. │ 1 │ 39 │ 1 │ ██████████ │
|
||||
41. │ 1 │ 40 │ 1 │ ██████████ │
|
||||
42. │ 1 │ 41 │ 1 │ ██████████ │
|
||||
43. │ 1 │ 42 │ 1 │ ██████████ │
|
||||
44. │ 1 │ 43 │ 1 │ ██████████ │
|
||||
45. │ 1 │ 44 │ 1 │ ██████████ │
|
||||
46. │ 1 │ 45 │ 1 │ ██████████ │
|
||||
47. │ 1 │ 46 │ 1 │ ██████████ │
|
||||
48. │ 1 │ 47 │ 1 │ ██████████ │
|
||||
49. │ 1 │ 48 │ 1 │ ██████████ │
|
||||
50. │ 1 │ 49 │ 1 │ ██████████ │
|
||||
└───────┴──────┴──────────────────────┴────────────┘
|
||||
```
|
@ -0,0 +1,105 @@
|
||||
---
|
||||
slug: /en/sql-reference/aggregate-functions/reference/exponentialTimeDecayedSum
|
||||
sidebar_position: 136
|
||||
title: exponentialTimeDecayedSum
|
||||
---
|
||||
|
||||
## exponentialTimeDecayedSum
|
||||
|
||||
Returns the sum of exponentially smoothed moving average values of a time series at the index `t` in time.
|
||||
|
||||
**Syntax**
|
||||
|
||||
```sql
|
||||
exponentialTimeDecayedSum(x)(v, t)
|
||||
```
|
||||
|
||||
**Arguments**
|
||||
|
||||
- `v` — Value. [Integer](../../../sql-reference/data-types/int-uint.md), [Float](../../../sql-reference/data-types/float.md) or [Decimal](../../../sql-reference/data-types/decimal.md).
|
||||
- `t` — Time. [Integer](../../../sql-reference/data-types/int-uint.md), [Float](../../../sql-reference/data-types/float.md) or [Decimal](../../../sql-reference/data-types/decimal.md), [DateTime](../../data-types/datetime.md), [DateTime64](../../data-types/datetime64.md).
|
||||
|
||||
**Parameters**
|
||||
|
||||
- `x` — Half-life period. [Integer](../../../sql-reference/data-types/int-uint.md), [Float](../../../sql-reference/data-types/float.md) or [Decimal](../../../sql-reference/data-types/decimal.md).
|
||||
|
||||
**Returned values**
|
||||
|
||||
- Returns the sum of exponentially smoothed moving average values at the given point in time. [Float64](../../data-types/float.md).
|
||||
|
||||
**Example**
|
||||
|
||||
Query:
|
||||
|
||||
```sql
|
||||
SELECT
|
||||
value,
|
||||
time,
|
||||
round(exp_smooth, 3),
|
||||
bar(exp_smooth, 0, 10, 50) AS bar
|
||||
FROM
|
||||
(
|
||||
SELECT
|
||||
(number = 0) OR (number >= 25) AS value,
|
||||
number AS time,
|
||||
exponentialTimeDecayedSum(10)(value, time) OVER (ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW) AS exp_smooth
|
||||
FROM numbers(50)
|
||||
);
|
||||
```
|
||||
|
||||
Result:
|
||||
|
||||
```response
|
||||
┌─value─┬─time─┬─round(exp_smooth, 3)─┬─bar───────────────────────────────────────────────┐
|
||||
1. │ 1 │ 0 │ 1 │ █████ │
|
||||
2. │ 0 │ 1 │ 0.905 │ ████▌ │
|
||||
3. │ 0 │ 2 │ 0.819 │ ████ │
|
||||
4. │ 0 │ 3 │ 0.741 │ ███▋ │
|
||||
5. │ 0 │ 4 │ 0.67 │ ███▎ │
|
||||
6. │ 0 │ 5 │ 0.607 │ ███ │
|
||||
7. │ 0 │ 6 │ 0.549 │ ██▋ │
|
||||
8. │ 0 │ 7 │ 0.497 │ ██▍ │
|
||||
9. │ 0 │ 8 │ 0.449 │ ██▏ │
|
||||
10. │ 0 │ 9 │ 0.407 │ ██ │
|
||||
11. │ 0 │ 10 │ 0.368 │ █▊ │
|
||||
12. │ 0 │ 11 │ 0.333 │ █▋ │
|
||||
13. │ 0 │ 12 │ 0.301 │ █▌ │
|
||||
14. │ 0 │ 13 │ 0.273 │ █▎ │
|
||||
15. │ 0 │ 14 │ 0.247 │ █▏ │
|
||||
16. │ 0 │ 15 │ 0.223 │ █ │
|
||||
17. │ 0 │ 16 │ 0.202 │ █ │
|
||||
18. │ 0 │ 17 │ 0.183 │ ▉ │
|
||||
19. │ 0 │ 18 │ 0.165 │ ▊ │
|
||||
20. │ 0 │ 19 │ 0.15 │ ▋ │
|
||||
21. │ 0 │ 20 │ 0.135 │ ▋ │
|
||||
22. │ 0 │ 21 │ 0.122 │ ▌ │
|
||||
23. │ 0 │ 22 │ 0.111 │ ▌ │
|
||||
24. │ 0 │ 23 │ 0.1 │ ▌ │
|
||||
25. │ 0 │ 24 │ 0.091 │ ▍ │
|
||||
26. │ 1 │ 25 │ 1.082 │ █████▍ │
|
||||
27. │ 1 │ 26 │ 1.979 │ █████████▉ │
|
||||
28. │ 1 │ 27 │ 2.791 │ █████████████▉ │
|
||||
29. │ 1 │ 28 │ 3.525 │ █████████████████▋ │
|
||||
30. │ 1 │ 29 │ 4.19 │ ████████████████████▉ │
|
||||
31. │ 1 │ 30 │ 4.791 │ ███████████████████████▉ │
|
||||
32. │ 1 │ 31 │ 5.335 │ ██████████████████████████▋ │
|
||||
33. │ 1 │ 32 │ 5.827 │ █████████████████████████████▏ │
|
||||
34. │ 1 │ 33 │ 6.273 │ ███████████████████████████████▎ │
|
||||
35. │ 1 │ 34 │ 6.676 │ █████████████████████████████████▍ │
|
||||
36. │ 1 │ 35 │ 7.041 │ ███████████████████████████████████▏ │
|
||||
37. │ 1 │ 36 │ 7.371 │ ████████████████████████████████████▊ │
|
||||
38. │ 1 │ 37 │ 7.669 │ ██████████████████████████████████████▎ │
|
||||
39. │ 1 │ 38 │ 7.939 │ ███████████████████████████████████████▋ │
|
||||
40. │ 1 │ 39 │ 8.184 │ ████████████████████████████████████████▉ │
|
||||
41. │ 1 │ 40 │ 8.405 │ ██████████████████████████████████████████ │
|
||||
42. │ 1 │ 41 │ 8.605 │ ███████████████████████████████████████████ │
|
||||
43. │ 1 │ 42 │ 8.786 │ ███████████████████████████████████████████▉ │
|
||||
44. │ 1 │ 43 │ 8.95 │ ████████████████████████████████████████████▊ │
|
||||
45. │ 1 │ 44 │ 9.098 │ █████████████████████████████████████████████▍ │
|
||||
46. │ 1 │ 45 │ 9.233 │ ██████████████████████████████████████████████▏ │
|
||||
47. │ 1 │ 46 │ 9.354 │ ██████████████████████████████████████████████▊ │
|
||||
48. │ 1 │ 47 │ 9.464 │ ███████████████████████████████████████████████▎ │
|
||||
49. │ 1 │ 48 │ 9.563 │ ███████████████████████████████████████████████▊ │
|
||||
50. │ 1 │ 49 │ 9.653 │ ████████████████████████████████████████████████▎ │
|
||||
└───────┴──────┴──────────────────────┴───────────────────────────────────────────────────┘
|
||||
```
|
@ -1,6 +1,6 @@
|
||||
---
|
||||
slug: /en/sql-reference/aggregate-functions/reference/first_value
|
||||
sidebar_position: 7
|
||||
sidebar_position: 137
|
||||
---
|
||||
|
||||
# first_value
|
||||
|
@ -1,6 +1,6 @@
|
||||
---
|
||||
slug: /en/sql-reference/aggregate-functions/reference/flamegraph
|
||||
sidebar_position: 110
|
||||
slug: /en/sql-reference/aggregate-functions/reference/flame_graph
|
||||
sidebar_position: 138
|
||||
---
|
||||
|
||||
# flameGraph
|
||||
|
@ -1,6 +1,6 @@
|
||||
---
|
||||
slug: /en/sql-reference/aggregate-functions/reference/grouparray
|
||||
sidebar_position: 110
|
||||
sidebar_position: 139
|
||||
---
|
||||
|
||||
# groupArray
|
||||
|
@ -1,6 +1,6 @@
|
||||
---
|
||||
slug: /en/sql-reference/aggregate-functions/reference/grouparrayinsertat
|
||||
sidebar_position: 112
|
||||
sidebar_position: 140
|
||||
---
|
||||
|
||||
# groupArrayInsertAt
|
||||
|
@ -1,6 +1,6 @@
|
||||
---
|
||||
slug: /en/sql-reference/aggregate-functions/reference/grouparrayintersect
|
||||
sidebar_position: 115
|
||||
sidebar_position: 141
|
||||
---
|
||||
|
||||
# groupArrayIntersect
|
||||
|
@ -1,6 +1,6 @@
|
||||
---
|
||||
slug: /en/sql-reference/aggregate-functions/reference/grouparraylast
|
||||
sidebar_position: 110
|
||||
sidebar_position: 142
|
||||
---
|
||||
|
||||
# groupArrayLast
|
||||
|
@ -1,6 +1,6 @@
|
||||
---
|
||||
slug: /en/sql-reference/aggregate-functions/reference/grouparraymovingavg
|
||||
sidebar_position: 114
|
||||
sidebar_position: 143
|
||||
---
|
||||
|
||||
# groupArrayMovingAvg
|
||||
|
@ -1,6 +1,6 @@
|
||||
---
|
||||
slug: /en/sql-reference/aggregate-functions/reference/grouparraymovingsum
|
||||
sidebar_position: 113
|
||||
sidebar_position: 144
|
||||
---
|
||||
|
||||
# groupArrayMovingSum
|
||||
|
@ -1,6 +1,6 @@
|
||||
---
|
||||
slug: /en/sql-reference/aggregate-functions/reference/grouparraysample
|
||||
sidebar_position: 114
|
||||
sidebar_position: 145
|
||||
---
|
||||
|
||||
# groupArraySample
|
||||
|
@ -1,6 +1,7 @@
|
||||
---
|
||||
toc_priority: 112
|
||||
---
|
||||
---
|
||||
slug: /en/sql-reference/aggregate-functions/reference/grouparraysorted
|
||||
sidebar_position: 146
|
||||
---
|
||||
|
||||
# groupArraySorted {#groupArraySorted}
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
---
|
||||
slug: /en/sql-reference/aggregate-functions/reference/groupbitand
|
||||
sidebar_position: 125
|
||||
sidebar_position: 147
|
||||
---
|
||||
|
||||
# groupBitAnd
|
||||
|
@ -1,6 +1,6 @@
|
||||
---
|
||||
slug: /en/sql-reference/aggregate-functions/reference/groupbitmap
|
||||
sidebar_position: 128
|
||||
sidebar_position: 148
|
||||
---
|
||||
|
||||
# groupBitmap
|
||||
|
@ -1,6 +1,6 @@
|
||||
---
|
||||
slug: /en/sql-reference/aggregate-functions/reference/groupbitmapand
|
||||
sidebar_position: 129
|
||||
sidebar_position: 149
|
||||
title: groupBitmapAnd
|
||||
---
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
---
|
||||
slug: /en/sql-reference/aggregate-functions/reference/groupbitmapor
|
||||
sidebar_position: 130
|
||||
sidebar_position: 150
|
||||
title: groupBitmapOr
|
||||
---
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
---
|
||||
slug: /en/sql-reference/aggregate-functions/reference/groupbitmapxor
|
||||
sidebar_position: 131
|
||||
sidebar_position: 151
|
||||
title: groupBitmapXor
|
||||
---
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
---
|
||||
slug: /en/sql-reference/aggregate-functions/reference/groupbitor
|
||||
sidebar_position: 126
|
||||
sidebar_position: 152
|
||||
---
|
||||
|
||||
# groupBitOr
|
||||
|
@ -1,6 +1,6 @@
|
||||
---
|
||||
slug: /en/sql-reference/aggregate-functions/reference/groupbitxor
|
||||
sidebar_position: 127
|
||||
sidebar_position: 153
|
||||
---
|
||||
|
||||
# groupBitXor
|
||||
|
@ -1,6 +1,6 @@
|
||||
---
|
||||
slug: /en/sql-reference/aggregate-functions/reference/groupuniqarray
|
||||
sidebar_position: 111
|
||||
sidebar_position: 154
|
||||
---
|
||||
|
||||
# groupUniqArray
|
||||
|
@ -1,6 +1,6 @@
|
||||
---
|
||||
slug: /en/sql-reference/aggregate-functions/reference/intervalLengthSum
|
||||
sidebar_position: 146
|
||||
sidebar_position: 155
|
||||
sidebar_label: intervalLengthSum
|
||||
title: intervalLengthSum
|
||||
---
|
||||
|
@ -1,6 +1,6 @@
|
||||
---
|
||||
slug: /en/sql-reference/aggregate-functions/reference/kolmogorovsmirnovtest
|
||||
sidebar_position: 300
|
||||
sidebar_position: 156
|
||||
sidebar_label: kolmogorovSmirnovTest
|
||||
---
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
---
|
||||
slug: /en/sql-reference/aggregate-functions/reference/kurtpop
|
||||
sidebar_position: 153
|
||||
sidebar_position: 157
|
||||
---
|
||||
|
||||
# kurtPop
|
||||
|
@ -1,6 +1,6 @@
|
||||
---
|
||||
slug: /en/sql-reference/aggregate-functions/reference/kurtsamp
|
||||
sidebar_position: 154
|
||||
sidebar_position: 158
|
||||
---
|
||||
|
||||
# kurtSamp
|
||||
|
@ -1,6 +1,6 @@
|
||||
---
|
||||
slug: /en/sql-reference/aggregate-functions/reference/largestTriangleThreeBuckets
|
||||
sidebar_position: 312
|
||||
sidebar_position: 159
|
||||
sidebar_label: largestTriangleThreeBuckets
|
||||
---
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
---
|
||||
slug: /en/sql-reference/aggregate-functions/reference/last_value
|
||||
sidebar_position: 8
|
||||
sidebar_position: 160
|
||||
---
|
||||
|
||||
# last_value
|
||||
|
@ -1,6 +1,6 @@
|
||||
---
|
||||
slug: /en/sql-reference/aggregate-functions/reference/mannwhitneyutest
|
||||
sidebar_position: 310
|
||||
sidebar_position: 161
|
||||
sidebar_label: mannWhitneyUTest
|
||||
---
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
---
|
||||
slug: /en/sql-reference/aggregate-functions/reference/max
|
||||
sidebar_position: 3
|
||||
sidebar_position: 162
|
||||
title: max
|
||||
---
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
---
|
||||
slug: /en/sql-reference/aggregate-functions/reference/maxintersections
|
||||
sidebar_position: 360
|
||||
sidebar_position: 163
|
||||
title: maxIntersections
|
||||
---
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
---
|
||||
slug: /en/sql-reference/aggregate-functions/reference/maxintersectionsposition
|
||||
sidebar_position: 361
|
||||
sidebar_position: 164
|
||||
title: maxIntersectionsPosition
|
||||
---
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
---
|
||||
slug: /en/sql-reference/aggregate-functions/reference/maxmap
|
||||
sidebar_position: 143
|
||||
sidebar_position: 165
|
||||
---
|
||||
|
||||
# maxMap
|
||||
|
@ -1,6 +1,6 @@
|
||||
---
|
||||
slug: /en/sql-reference/aggregate-functions/reference/meanztest
|
||||
sidebar_position: 303
|
||||
sidebar_position: 166
|
||||
sidebar_label: meanZTest
|
||||
---
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
---
|
||||
slug: /en/sql-reference/aggregate-functions/reference/median
|
||||
sidebar_position: 212
|
||||
sidebar_position: 167
|
||||
---
|
||||
|
||||
# median
|
||||
|
@ -1,6 +1,6 @@
|
||||
---
|
||||
slug: /en/sql-reference/aggregate-functions/reference/min
|
||||
sidebar_position: 2
|
||||
sidebar_position: 168
|
||||
title: min
|
||||
---
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
---
|
||||
slug: /en/sql-reference/aggregate-functions/reference/minmap
|
||||
sidebar_position: 142
|
||||
sidebar_position: 169
|
||||
---
|
||||
|
||||
# minMap
|
||||
|
@ -1,6 +1,6 @@
|
||||
---
|
||||
slug: /en/sql-reference/aggregate-functions/reference/quantile
|
||||
sidebar_position: 200
|
||||
sidebar_position: 170
|
||||
---
|
||||
|
||||
# quantile
|
||||
|
@ -1,6 +1,6 @@
|
||||
---
|
||||
slug: /en/sql-reference/aggregate-functions/reference/quantileGK
|
||||
sidebar_position: 204
|
||||
sidebar_position: 175
|
||||
---
|
||||
|
||||
# quantileGK
|
||||
|
@ -1,6 +1,6 @@
|
||||
---
|
||||
slug: /en/sql-reference/aggregate-functions/reference/quantilebfloat16
|
||||
sidebar_position: 209
|
||||
sidebar_position: 171
|
||||
title: quantileBFloat16
|
||||
---
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
---
|
||||
slug: /en/sql-reference/aggregate-functions/reference/quantileddsketch
|
||||
sidebar_position: 211
|
||||
sidebar_position: 171
|
||||
title: quantileDD
|
||||
---
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
---
|
||||
slug: /en/sql-reference/aggregate-functions/reference/quantiledeterministic
|
||||
sidebar_position: 206
|
||||
sidebar_position: 172
|
||||
---
|
||||
|
||||
# quantileDeterministic
|
||||
|
@ -1,6 +1,6 @@
|
||||
---
|
||||
slug: /en/sql-reference/aggregate-functions/reference/quantileexact
|
||||
sidebar_position: 202
|
||||
sidebar_position: 173
|
||||
---
|
||||
|
||||
# quantileExact Functions
|
||||
|
@ -1,6 +1,6 @@
|
||||
---
|
||||
slug: /en/sql-reference/aggregate-functions/reference/quantileexactweighted
|
||||
sidebar_position: 203
|
||||
sidebar_position: 174
|
||||
---
|
||||
|
||||
# quantileExactWeighted
|
||||
|
@ -1,6 +1,6 @@
|
||||
---
|
||||
slug: /en/sql-reference/aggregate-functions/reference/quantileInterpolatedWeighted
|
||||
sidebar_position: 203
|
||||
sidebar_position: 176
|
||||
---
|
||||
|
||||
# quantileInterpolatedWeighted
|
||||
|
@ -1,6 +1,6 @@
|
||||
---
|
||||
slug: /en/sql-reference/aggregate-functions/reference/quantiles
|
||||
sidebar_position: 201
|
||||
sidebar_position: 177
|
||||
---
|
||||
|
||||
# quantiles Functions
|
||||
|
@ -1,6 +1,6 @@
|
||||
---
|
||||
slug: /en/sql-reference/aggregate-functions/reference/quantiletdigest
|
||||
sidebar_position: 207
|
||||
sidebar_position: 178
|
||||
---
|
||||
|
||||
# quantileTDigest
|
||||
|
@ -1,6 +1,6 @@
|
||||
---
|
||||
slug: /en/sql-reference/aggregate-functions/reference/quantiletdigestweighted
|
||||
sidebar_position: 208
|
||||
sidebar_position: 179
|
||||
---
|
||||
|
||||
# quantileTDigestWeighted
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user