You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@calcite.apache.org by "Stamatis Zampetakis (Jira)" <ji...@apache.org> on 2025/04/30 07:06:00 UTC
[jira] [Updated] (CALCITE-6993) Simplify Sarg digest to drop redundant type information
[ https://issues.apache.org/jira/browse/CALCITE-6993?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Stamatis Zampetakis updated CALCITE-6993:
-----------------------------------------
Summary: Simplify Sarg digest to drop redundant type information (was: Enhance the digest of Sarg to show whether the collection type is nullable)
> Simplify Sarg digest to drop redundant type information
> -------------------------------------------------------
>
> Key: CALCITE-6993
> URL: https://issues.apache.org/jira/browse/CALCITE-6993
> Project: Calcite
> Issue Type: Bug
> Reporter: xiong duan
> Priority: Major
>
> The issue was discovered at [https://github.com/apache/calcite/pull/4345.]
> For example in unit test testMakeInReturnsSearchForArrayLiterals:
> {code:java}
> [100:INTEGER, 200:INTEGER]:INTEGER NOT NULL ARRAY,[300:INTEGER, 400:INTEGER]:INTEGER NOT NULL ARRAY]:INTEGER NOT NULL ARRAY
> Can be simplified to:
> [100, 200],[300, 400]:INTEGER NOT NULL ARRAY NOT NULL{code}
> 1: The repeated element types do not necessarily need to be output.
> 2: It is necessary to add the nullable information output for the Array.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)