v.24.10Improvement
Always Use New Analyzer for Constant Expression Calculation
Always use the new analyzer to calculate constant expressions whenenable_analyzeris set totrue. Support calculation ofexecutabletable function arguments without usingSELECTquery for constant expressions. #69292 (Dmitry Novik).
Why it matters
This feature improves the efficiency and consistency of constant expression evaluation in ClickHouse by leveraging the new analyzer. It eliminates the need to wrap executable table function arguments in aSELECT query to calculate constants, simplifying query writing and potentially improving performance.How to use it
Enable the new analyzer by setting theenable_analyzer parameter to true. Once enabled, constant expressions, including those in executable table function arguments, will be calculated automatically without the need for a SELECT wrapper.