You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug] Flink VARIANT NOT NULL column is stored as nullable #10616
CREATETABLEt (id INT, v VARIANT NOT NULL);
INSERT INTO t VALUES (1, CAST(NULLAS VARIANT));
SELECT*FROM t;
What doesn't meet your expectations?
The insert succeeds and the table holds a NULL in a column declared NOT NULL. LogicalTypeToDataType.visit(VariantType) always creates a nullable Paimon VariantType, so the NOT NULL constraint is not stored, Flink reads the column back as nullable and does not enforce it, and other engines see a nullable column too.
Activity