v.23.7Improvement
Allow SQL Standard FETCH without OFFSET
Allow SQL standardFETCHwithoutOFFSET. See https://antonz.org/sql-fetch/. #51293 (Alexey Milovidov).
Why it matters
This feature addresses the limitation whereFETCH could not be used alone without an OFFSET clause, aligning ClickHouse closer to the SQL standard. It simplifies query writing and improves compatibility with SQL codebases that use FETCH without OFFSET, making ClickHouse easier to use in diverse SQL environments.How to use it
Users can now write queries with theFETCH clause directly without specifying OFFSET. For example:SELECT * FROM table_name FETCH FIRST 10 ROWS ONLYThis syntax is supported without requiring an explicit
OFFSET clause.