calcite-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jesus Camacho Rodriguez (JIRA)" <j...@apache.org>
Subject [jira] [Created] (CALCITE-1199) Incorrect trimming of CHAR when performing cast to VARCHAR
Date Wed, 13 Apr 2016 09:35:25 GMT
Jesus Camacho Rodriguez created CALCITE-1199:
------------------------------------------------

             Summary: Incorrect trimming of CHAR when performing cast to VARCHAR
                 Key: CALCITE-1199
                 URL: https://issues.apache.org/jira/browse/CALCITE-1199
             Project: Calcite
          Issue Type: Bug
          Components: core
            Reporter: Jesus Camacho Rodriguez
            Assignee: Jesus Camacho Rodriguez


Assume the value ' ' with type CHAR(1) that needs to be cast to VARCHAR(10).

The method {{makeCast}} (line 488 in RexBuilder.java) trims the right hand side of the CHAR
value, but this seems incorrect as it could lead to incorrect results.




--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message