trino icon indicating copy to clipboard operation
trino copied to clipboard

MariaDB connector doesn't allow insertions no data into nonnullable column

Open homar opened this issue 3 years ago • 1 comments

Following scenario doesn't work for MariaDB

CREATE TABLE test (nullable_col INTEGER, not_null_col INTEGER NOT NULL);

INSERT INTO test (nullable_col) SELECT nationkey FROM nation WHERE regionkey < 0; //nothing is inserted so this should pass, but it doesn't

homar avatar Aug 08 '22 19:08 homar

@martint does the spec define the expected behavior?

findepi avatar Aug 09 '22 09:08 findepi