You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@calcite.apache.org by "pengzhiwei (JIRA)" <ji...@apache.org> on 2018/05/15 12:18:00 UTC

[jira] [Created] (CALCITE-2311) case when returns redundant white space

pengzhiwei created CALCITE-2311:
-----------------------------------

             Summary: case when returns redundant white space
                 Key: CALCITE-2311
                 URL: https://issues.apache.org/jira/browse/CALCITE-2311
             Project: Calcite
          Issue Type: Bug
          Components: core
    Affects Versions: 1.1.0-incubating
            Reporter: pengzhiwei
            Assignee: Julian Hyde
             Fix For: 1.17.0


If case when has two brach which returns string literal,redundant white space will append to the short brach.For example:
{code:java}
case when id>0 then 'a' else 'abc' end{code}
will actually be convert to 
{code:java}
case when id>0 then 'a  ' else 'abc' end{code}
 



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)