v.23.7Improvement

Check Early for Invalid S2 Geo Primitives in ClickHouse

Check whether S2 geo primitives are invalid as early as possible on ClickHouse side. This closes: #27090. #52260 (Nikita Mikhaylov).
Adds early validation for S2 geo primitives in ClickHouse to detect invalid geometries promptly.

Why it matters

This feature aims to catch invalid S2 geographic primitives as early as possible during query processing, preventing downstream errors and improving data integrity and user experience when working with geo data.

How to use it

No additional configuration is required to use this feature; ClickHouse will automatically perform validation of S2 geo primitives during query execution to ensure their validity.