[
https://issues.apache.org/jira/browse/CALCITE-6192?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Mihai Budiu resolved CALCITE-6192.
----------------------------------
Fix Version/s: 1.37.0
Resolution: Fixed
Fixed by
https://github.com/apache/calcite/commit/3deb77cd6faf811d8a3ca27d6379bd20afb721cf
> 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
> Assignee: Evgeny Stanilovsky
> Priority: Major
> Labels: pull-request-available
> Fix For: 1.37.0
>
>
> 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)