Add a new min_max strategy to ClickHouse iterator
What does this MR do and why?
This MR adds a new strategy for determining min-max ranges for the ClickHouse iterator.
See the thread here for more context: !143931 (comment 1762415945)
TLDR: in some cases using ORDER BY x ASC/DESC LIMIT 1
works faster than MIN() and MAX()
in ClickHouse.
Edited by Adam Hegyi