-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Pretty formats: squash blocks if not much time passed since output of the previous block. #49153
Copy link
Copy link
Labels
featureusabilitywarmup taskThe task for new ClickHouse team members. Low risk, moderate complexity, no urgency.The task for new ClickHouse team members. Low risk, moderate complexity, no urgency.
Description
┌─exception_code─┬──count()─┐
│ 252 │ 35961274 │
└────────────────┴──────────┘
┌─exception_code─┬─count()─┐
│ 645 │ 721594 │
└────────────────┴─────────┘
┌─exception_code─┬─count()─┐
│ 1001 │ 719897 │
└────────────────┴─────────┘
┌─exception_code─┬─count()─┐
│ 26 │ 679782 │
└────────────────┴─────────┘
┌─exception_code─┬─count()─┐
│ 62 │ 465018 │
└────────────────┴─────────┘
┌─exception_code─┬─count()─┐
│ 241 │ 443922 │
└────────────────┴─────────┘
This output looks bad.
Let's squash blocks before formatting unless they are large or 100 ms passed since the first block.
The max timeout can be controlled by a setting.
The feature can be implemented by extending the Squashing... something, but it should apply only for pretty formats.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
featureusabilitywarmup taskThe task for new ClickHouse team members. Low risk, moderate complexity, no urgency.The task for new ClickHouse team members. Low risk, moderate complexity, no urgency.