You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
FR: Expose what triggered the merge in system.part_log #26255
It would be great to see what TTL rule triggered a particular merge.
The other reasons are nice to see as well, like an OPTIMIZE statement etc.
Maybe add a row when a merge starts? Like in system.query_log.
Hi SaltTan,did you mean add merge_type column into part log?
enum class MergeType
{
/// Just regular merge
REGULAR = 1,
/// Merge assigned to delete some data from parts (with TTLMergeSelector)
TTL_DELETE = 2,
/// Merge with recompression
TTL_RECOMPRESS = 3,
};
I'm not sure about regular merges, but if it's possible to expose the reason why ClickHouse decided to run this particular merge, that would be interesting to see :)
However I'll be happy to see MergeType as you are suggesting, it's much better than nothing.
Another useful thing to see in part_log is MergeAlgorithm
enum class MergeAlgorithm
{
Undecided, /// Not running yet
Horizontal, /// per-row merge of all columns
Vertical /// per-row merge of PK and secondary indices columns, per-column gather for non-PK columns
};
I'm not sure about regular merges, but if it's possible to expose the reason why ClickHouse decided to run this particular merge, that would be interesting to see :)
However I'll be happy to see MergeType as you are suggesting, it's much better than nothing.
I have some questions. At present, there are two ways to trigger Merge, one is the optimize statement, and the other is the background scheduling. it will select three MergeType in method selectPartsToMerge . Therefore, optimize belongs to trigger mode and TTL belongs to MergeType. So what I understand is that you want both the trigger reason and MergeType
I have some questions. At present, there are two ways to trigger Merge, one is the optimize statement, and the other is the background scheduling. it will select three MergeType in method selectPartsToMerge . Therefore, optimize belongs to trigger mode and TTL belongs to MergeType. So what I understand is that you want both the trigger reason and MergeType
Yes, and I also want MergeAlgorithm now :)
Thank you for looking into this.
enum class MergeAlgorithm
{
Undecided, /// Not running yet
Horizontal, /// per-row merge of all columns
Vertical /// per-row merge of PK and secondary indices columns, per-column gather for non-PK columns
};
Activity
MaxWk commentedon Jul 15, 2021
please assign it to me
MaxWk commentedon Jul 15, 2021
Hi SaltTan,did you mean add merge_type column into part log?
SaltTan commentedon Jul 15, 2021
Ideally I would like to see something like this:
I'm not sure about regular merges, but if it's possible to expose the reason why ClickHouse decided to run this particular merge, that would be interesting to see :)
However I'll be happy to see MergeType as you are suggesting, it's much better than nothing.
SaltTan commentedon Jul 26, 2021
Another useful thing to see in
part_logisMergeAlgorithmMaxWk commentedon Jul 29, 2021
I have some questions. At present, there are two ways to trigger Merge, one is the optimize statement, and the other is the background scheduling. it will select three
MergeTypein methodselectPartsToMerge. Therefore, optimize belongs to trigger mode and TTL belongs to MergeType. So what I understand is that you want both the trigger reason and MergeTypeSaltTan commentedon Jul 29, 2021
Yes, and I also want MergeAlgorithm now :)
Thank you for looking into this.
alexey-milovidov commentedon Dec 23, 2021
@MaxWk Are you working on this feature?
FR: Expose what triggered the merge in system.part_log #26255
FR: Expose what triggered the merge in system.part_log #26255
azat commentedon Jul 14, 2022
Seems that this can be closed now?