Repository navigation
Add experimental support for descending sorting keys in MergeTree tables - #71095
Merged
Merged
Conversation
Contributor
|
This is an automated comment for commit 663d26e with description of existing statuses. It's updated for the latest CI running ❌ Click here to open a full report in a separate page
Successful checks
|
amosbird
marked this pull request as ready for review
October 28, 2024 02:19
KochetovNicolai
force-pushed
the
implement-23210
branch
2 times, most recently
from
November 1, 2024 10:41
52d1398 to
aea4036
Compare
KochetovNicolai
force-pushed
the
implement-23210
branch
from
November 4, 2024 11:27
aea4036 to
f8437fc
Compare
Algunenano
reviewed
Dec 12, 2024
| DECLARE(String, storage_policy, "default", "Name of storage disk policy", 0) \ | ||
| DECLARE(String, disk, "", "Name of storage disk. Can be specified instead of storage policy.", 0) \ | ||
| DECLARE(Bool, allow_nullable_key, false, "Allow Nullable types as primary keys.", 0) \ | ||
| DECLARE(Bool, allow_experimental_reverse_key, false, "Allow descending sorting key in MergeTree tables (experimental feature).", 0) \ |
Member
There was a problem hiding this comment.
Please mark the setting as EXPERIMENTAL in the flags (the 0 at the end). Otherwise it's not experimental, just it has a different name
Contributor
There was a problem hiding this comment.
seems to need validation in the code
20 tasks
baibaichen
added a commit
to Kyligence/gluten
that referenced
this pull request
Dec 13, 2024
baibaichen
added a commit
to apache/gluten
that referenced
this pull request
Dec 13, 2024
* [GLUTEN-1632][CH]Daily Update Clickhouse Version (20241213) * Fix build due to ClickHouse/ClickHouse#71095 --------- Co-authored-by: kyligence-git <[email protected]> Co-authored-by: Chang Chen <[email protected]>
Member
Member
|
Although, there is good speedup when I read a small number of columns. |
Collaborator
Author
Are you using this query to verify? You can try adding non-primary key filters that cannot be satisfied by the last few granules alone (e.g., filters that result in fewer than 10 matches). |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes to CHANGELOG.md):
This PR introduces a new setting
allow_experimental_reverse_keythat enables support for descending sort order in MergeTree sorting keys. This is useful for time series analysis, especially TopN queries. Example usage:Some preliminary perf test:
Documentation entry for user-facing changes
CI Settings (Only check the boxes if you know what you are doing):