v.24.5Improvement
Progress bar functionality enhancement for trivial queries with LIMIT and earlier exception handling for row limits
The progress bar will work for trivial queries with LIMIT fromsystem.zeros,system.zeros_mt(it already works forsystem.numbersandsystem.numbers_mt), and thegenerateRandomtable function. As a bonus, if the total number of records is greater than themax_rows_to_readlimit, it will throw an exception earlier. This closes #58183. #61823 (Alexey Milovidov).
Why it matters
This feature improves user experience by enabling progress feedback for more trivial query cases where previously it was unavailable, helping users better understand query execution progress. Additionally, by throwing exceptions earlier when themax_rows_to_read limit is exceeded, it prevents unnecessary resource consumption and reduces wait times.How to use it
Simply run queries withLIMIT on system.zeros, system.zeros_mt, or the generateRandom table function as before. The progress bar will automatically display during execution. If the query reads more rows than allowed by max_rows_to_read, an exception will be raised automatically.