v.23.1Improvement
Refactor Schema Inference for Text Formats with Nullable Columns Setting
Refactor and improve schema inference for text formats. Add new settingschema_inference_make_columns_nullablethat controls making result typesNullable(enabled by default);. #44019 (Kruglov Pavel).
Why it matters
This feature improves the accuracy and flexibility of schema inference when importing text data formats by allowing nullable types. It helps prevent data import errors due to non-nullable columns and provides better compatibility with datasets containing missing or null values.How to use it
Users can control the nullability of inferred columns by settingschema_inference_make_columns_nullable to true or false. The setting is enabled (true) by default, making all inferred column types nullable. To disable this behavior, set the option to false in the configuration or session settings.