diff --git a/tests/queries/0_stateless/01715_tuple_insert_null_as_default.reference b/tests/queries/0_stateless/01715_tuple_insert_null_as_default.reference new file mode 100644 index 00000000000..982dfb6ab3c --- /dev/null +++ b/tests/queries/0_stateless/01715_tuple_insert_null_as_default.reference @@ -0,0 +1,2 @@ +(0,1) +(0,1) diff --git a/tests/queries/0_stateless/01715_tuple_insert_null_as_default.sql b/tests/queries/0_stateless/01715_tuple_insert_null_as_default.sql new file mode 100644 index 00000000000..82b218a3d7f --- /dev/null +++ b/tests/queries/0_stateless/01715_tuple_insert_null_as_default.sql @@ -0,0 +1,12 @@ +DROP TABLE IF EXISTS test_tuple; +CREATE TABLE test_tuple (value Tuple(UInt8, UInt8)) ENGINE=TinyLog; + +SET input_format_null_as_default = 1; +INSERT INTO test_tuple VALUES ((NULL, 1)); +SELECT * FROM test_tuple; + +SET input_format_null_as_default = 0; +INSERT INTO test_tuple VALUES ((NULL, 2)); -- { clientError 53 } +SELECT * FROM test_tuple; + +DROP TABLE test_tuple;