You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@calcite.apache.org by "Mihai Budiu (Jira)" <ji...@apache.org> on 2025/08/29 17:33:00 UTC
[jira] [Resolved] (CALCITE-7147) Comparison of INTEGER and BOOLEAN produces strange results
[ https://issues.apache.org/jira/browse/CALCITE-7147?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Mihai Budiu resolved CALCITE-7147.
----------------------------------
Fix Version/s: 1.41.0
Resolution: Fixed
Fixed in https://github.com/apache/calcite/commit/0d9219846c67f91db02eccc941d18d98151cca5c
Thank you for the review [~jensen]
> Comparison of INTEGER and BOOLEAN produces strange results
> ----------------------------------------------------------
>
> Key: CALCITE-7147
> URL: https://issues.apache.org/jira/browse/CALCITE-7147
> Project: Calcite
> Issue Type: Bug
> Components: core
> Affects Versions: 1.40.0
> Reporter: Mihai Budiu
> Assignee: Mihai Budiu
> Priority: Minor
> Labels: pull-request-available
> Fix For: 1.41.0
>
>
> The following test in RelToSqlConverterTests passes:
> {code:java}
> final String query = "select FALSE = 256";
> final String expected = "SELECT *\nFROM (VALUES (TRUE)) AS \"t\" (\"EXPR$0\")";
> sql(query).ok(expected);
> {code}
> I can't really imagine why FALSE would be equal to 256 under any reasonable interpretation.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)