v.20.8Improvement

Fix lcm Function Assertion Violation in Debug Build

In previous versions lcm function may produce assertion violation in debug build if called with specifically crafted arguments. This fixes #13368. #13510 (alexey-milovidov).
Fixes an assertion violation bug in the lcm function that occurred in debug builds when called with certain crafted arguments.

Why it matters

The fix addresses a stability issue where the lcm (least common multiple) function could cause the ClickHouse server to crash with an assertion error during debug builds. This improves the reliability and robustness of the lcm function for users.

How to use it

Simply upgrade to the ClickHouse version containing this fix to automatically prevent this assertion violation. No changes in code or queries are required.