v.19.14New Feature

Parse Unquoted NULL Literal as NULL (if Setting Format_csv_unquoted_null_literal_as_null=1)

Parse unquoted NULL literal as NULL (if setting format_csv_unquoted_null_literal_as_null=1). Initialize null fields with default values if data type of this field is not nullable (if setting input_format_null_as_default=1). #5990 #6055 (tavplubix)
Introduces support for parsing unquoted NULL literals as SQL NULL values in CSV input and enables initialization of null fields with default values for non-nullable data types.

Why it matters

This feature addresses the need to correctly interpret unquoted NULL literals in CSV data as actual NULL values, improving data import accuracy. Additionally, it ensures that fields with non-nullable data types can be initialized with their default values when the input data contains nulls, thereby preventing errors during data insertion.

How to use it

Enable the parsing of unquoted NULL literals as NULL by setting the parameter format_csv_unquoted_null_literal_as_null=1. To initialize null fields with default values for non-nullable columns, set input_format_null_as_default=1 during data import operations.