You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@calcite.apache.org by "Julian Hyde (JIRA)" <ji...@apache.org> on 2019/02/11 18:48:00 UTC
[jira] [Commented] (CALCITE-2839) Simplify x = true to x and x =
false to not x
[ https://issues.apache.org/jira/browse/CALCITE-2839?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16765265#comment-16765265 ]
Julian Hyde commented on CALCITE-2839:
--------------------------------------
While you're there, do {{true = x}} and {{false = x}}.
> Simplify x = true to x and x = false to not x
> ---------------------------------------------
>
> Key: CALCITE-2839
> URL: https://issues.apache.org/jira/browse/CALCITE-2839
> Project: Calcite
> Issue Type: Improvement
> Reporter: Zoltan Haindrich
> Assignee: Julian Hyde
> Priority: Major
>
> Testcase for RexProgramTest
> {code}
> @Test public void testEqTrue() {
> checkSimplify3(eq(vBool(1), trueLiteral),
> "?0.bool1",
> "?0.bool1",
> "?0.bool1");
> }
> {code}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)