Evgeny Stanilovsky created CALCITE-6192:
-------------------------------------------
Summary: DEFAULT expression with NULL value throws unexpected
exception
Key: CALCITE-6192
URL: https://issues.apache.org/jira/browse/CALCITE-6192
Project: Calcite
Issue Type: Bug
Components: core
Affects Versions: 1.36.0
Reporter: Evgeny Stanilovsky
Processing of DEFAULT expression was improved in scope of [1] but seems there
is one case with NULL as value is not covered and processed erroneously.
{code:java}
create table tdef1 (i int not null, col1 int default null);
insert into tdef1(i, col1) values (1, DEFAULT);
{code}
throws :
{code:java}
Error while executing SQL "insert into tdef1(i, col1) values (1, DEFAULT)":
class org.apache.calcite.sql.SqlLiteral: NULL
{code}
[1] https://issues.apache.org/jira/browse/CALCITE-5950
--
This message was sent by Atlassian Jira
(v8.20.10#820010)