You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@calcite.apache.org by "Kevin Risden (JIRA)" <ji...@apache.org> on 2019/03/19 11:00:00 UTC
[jira] [Commented] (CALCITE-2934) Simplification of a filter =($0,
false) to NOT($0) ($0 is boolean)
[ https://issues.apache.org/jira/browse/CALCITE-2934?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16795972#comment-16795972 ]
Kevin Risden commented on CALCITE-2934:
---------------------------------------
[~zabetak] - Please correct as you see fit. I copied/pasted your description from the 1.19 RC vote thread.
> Simplification of a filter =($0, false) to NOT($0) ($0 is boolean)
> ------------------------------------------------------------------
>
> Key: CALCITE-2934
> URL: https://issues.apache.org/jira/browse/CALCITE-2934
> Project: Calcite
> Issue Type: Bug
> Reporter: Stamatis Zampetakis
> Priority: Major
> Fix For: 1.20.0
>
>
> The errors occur due to the simplification of a filter =($0, false) to NOT($0) ($0 is boolean). The transformation is valid so in principle the tests should not fail. However it makes me wonder if adding negation is really a simplification. If I want to push this expression into an index
> (e.g., B+Tree) I would have to rewrite it again to something equivalent to =($0, false) since many types of indexes do not support negative conditions.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)