v.22.10Improvement

Fix Out-of-Range Date Parsing from CSV

Fix parsing out-of-range Date from CSV. #42044 (Andrey Zvonov).
Fixes the parsing of out-of-range Date values when importing data from CSV files.

Why it matters

This fix addresses the issue where Date values outside the valid range caused errors or incorrect parsing during CSV import. It improves data import reliability and accuracy when working with dates that may fall outside the typical Date range supported by ClickHouse.

How to use it

Users benefit from this fix automatically when importing CSV data using functions like INSERT or clickhouse-client importing CSV format. No configuration changes are required; the fix ensures correct handling of out-of-range dates during parsing.