v.22.8Improvement
Add ProfileEvents Counters for Query Complexity Limitations
Add counters (ProfileEvents) for cases when query complexity limitation has been set and has reached (a separate counter foroverflow_mode=breakandthrow). For example, if you have set upmax_rows_to_readwithread_overflow_mode = 'break', looking at the value ofOverflowBreakcounter will allow distinguishing incomplete results. #40205 (Alexey Milovidov).
Why it matters
This feature helps users monitor and understand when queries hit configured complexity limits such asmax_rows_to_read during execution. By providing distinct counters for different overflow modes, it allows users to detect incomplete results (in case of break) or errors (in case of throw), improving observability and troubleshooting.How to use it
Configure query complexity limits likemax_rows_to_read along with the read_overflow_mode setting (e.g., break or throw). Then, monitor the new ProfileEvents counters OverflowBreak and the corresponding counter for throw to determine when limits are reached and how queries behave.