Details
-
Bug
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
None
Description
Default constraint with value = NULL causes an error.
CREATE TABLE tbl(id int PRIMARY KEY, val INTEGER DEFAULT NULL)
Caused by: java.lang.ClassCastException: Cannot cast org.apache.calcite.rel.metadata.NullSentinel$1 to java.lang.Integer at java.base/java.lang.Class.cast(Class.java:3605) at org.apache.calcite.sql.SqlLiteral.getValueAs(SqlLiteral.java:288) at org.apache.ignite.internal.sql.engine.prepare.ddl.DdlSqlToCommandConverter.fromLiteral(DdlSqlToCommandConverter.java:799)
Attachments
Issue Links
- links to