[teiid-issues] [JBoss JIRA] (TEIID-4226) HANA translator: boolean type converted to tinyint in each convert

Ted Jones (JIRA) issues at jboss.org
Wed May 25 11:56:00 EDT 2016


     [ https://issues.jboss.org/browse/TEIID-4226?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ted Jones reassigned TEIID-4226:
--------------------------------

    Assignee: Steven Hawkins  (was: Ted Jones)


> HANA translator: boolean type converted to tinyint in each convert
> ------------------------------------------------------------------
>
>                 Key: TEIID-4226
>                 URL: https://issues.jboss.org/browse/TEIID-4226
>             Project: Teiid
>          Issue Type: Bug
>          Components: Misc. Connectors
>    Affects Versions: 8.12.5
>            Reporter: Jan Stastny
>            Assignee: Steven Hawkins
>            Priority: Critical
>
> HANA translator blindly converts boolean values to tinyint when a boolean column is pushed as part of a convert function to datasource.
> Example query:
> {code:sql}
> SELECT CONCAT2(stringNum,booleanvalue) FROM BQT1.SmallA;
> {code}
> and its DATA SRC COMMAND:
> {code:sql}
> SELECT CONCAT2(g_0.STRINGNUM, convert(g_0.BOOLEANVALUE, string)) FROM BQT1.SMALLA AS g_0
> {code}
> and its SOURCE SRC COMMAND:
> {code:sql}
> SELECT CASE WHEN g_0."STRINGNUM" IS NULL AND cast(g_0."BOOLEANVALUE" AS tinyint) IS NULL THEN NULL ELSE concat(ifnull(g_0."STRINGNUM", ''), ifnull(cast(g_0."BOOLEANVALUE" AS tinyint), '')) END FROM "BQT1"."SMALLA" AS g_0
> {code}



--
This message was sent by Atlassian JIRA
(v6.4.11#64026)


More information about the teiid-issues mailing list