You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@calcite.apache.org by "Vladimir Sitnikov (Jira)" <ji...@apache.org> on 2020/11/12 16:13:00 UTC
[jira] [Created] (CALCITE-4398) RexSimplify introduces
cast(nullable as nonnull)
Vladimir Sitnikov created CALCITE-4398:
------------------------------------------
Summary: RexSimplify introduces cast(nullable as nonnull)
Key: CALCITE-4398
URL: https://issues.apache.org/jira/browse/CALCITE-4398
Project: Calcite
Issue Type: Bug
Components: core
Affects Versions: 1.26.0
Reporter: Vladimir Sitnikov
{noformat}
isNotNull(case_(case_(trueLiteral, isFalse(lt(vInt(1), literal(0))), trueLiteral), trueLiteral, falseLiteral))
{noformat}
is optimized to
{noformat}IS NOT NULL(CAST(>=(?0.int1, 0)):BOOLEAN NOT NULL){noformat}
which looks strange, since it casts nullable value to a non-null type.
/cc [~kgyrtkirk]
--
This message was sent by Atlassian Jira
(v8.3.4#803005)