v.19.14New Feature
Parse Unquoted NULL Literal as NULL (if Setting Format_csv_unquoted_null_literal_as_null=1)
Parse unquotedNULLliteral as NULL (if settingformat_csv_unquoted_null_literal_as_null=1). Initialize null fields with default values if data type of this field is not nullable (if settinginput_format_null_as_default=1). #5990 #6055 (tavplubix)
Why it matters
This feature addresses the need to correctly interpret unquotedNULL 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 unquotedNULL 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.