v.23.12New Feature
Add CSV Setting to Infer Numbers from Strings
Add new setting input_format_csv_try_infer_numbers_from_strings that allows to infer numbers from strings in CSV format. Closes #56455. #56859 (Kruglov Pavel).Why it matters
This feature addresses the issue of numeric data being imported as strings from CSV files, improving data type accuracy and reducing the need for manual type casting by users.How to use it
To enable this feature, set theinput_format_csv_try_infer_numbers_from_strings setting to 1 before importing CSV data. For example:SET input_format_csv_try_infer_numbers_from_strings = 1;
-- Then proceed with the CSV import