Why it matters
This feature stops the query optimizer from prematurely evaluating (constant folding) functions that are explicitly marked as forbidden for such optimization. This ensures correctness in query execution by preserving intended runtime evaluation of these functions, which might otherwise lead to incorrect results or side effects if evaluated too early.How to use it
Users benefit from this feature automatically when using functions marked as forbidden for constant folding. There is no specific action required; the ClickHouse engine respects the restriction during query optimization. To apply, ensure to mark functions as forbidden for constant folding in the function implementation or configuration if customizing.