[ 
https://issues.apache.org/jira/browse/CALCITE-6756?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

xiong duan resolved CALCITE-6756.
---------------------------------
    Fix Version/s: 1.39.0
         Assignee: xiong duan
       Resolution: Fixed

> Preserving CAST of STRING operand in binary comparison for PostgreSQL
> ---------------------------------------------------------------------
>
>                 Key: CALCITE-6756
>                 URL: https://issues.apache.org/jira/browse/CALCITE-6756
>             Project: Calcite
>          Issue Type: Bug
>            Reporter: xiong duan
>            Assignee: xiong duan
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 1.39.0
>
>
> In Postgresql:
> {code:java}
> SELECT * FROM table where cast('10' as text)  = 1; // throw operator does not 
> exist: text = integer
> SELECT * FROM table where cast('10' as varchar)  = 1; // operator does not 
> exist: character varying = integer
> SELECT * FROM table where cast('10' as char)  = 1; //operator does not exist: 
> character = integer{code}
> So when generating Postgres SQL, we need to preserve the CAST of STRING.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to