Uploaded image for project: 'Teiid'
  1. Teiid
  2. TEIID-4226

HANA translator: boolean type converted to tinyint in each convert

    XMLWordPrintable

Details

    Description

      HANA translator blindly converts boolean values to tinyint when a boolean column is pushed as part of a convert function to datasource.
      Example query:

      SELECT CONCAT2(stringNum,booleanvalue) FROM BQT1.SmallA;
      

      and its DATA SRC COMMAND:

      SELECT CONCAT2(g_0.STRINGNUM, convert(g_0.BOOLEANVALUE, string)) FROM BQT1.SMALLA AS g_0
      

      and its SOURCE SRC COMMAND:

      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
      

      Attachments

        Activity

          People

            rhn-engineering-shawkins Steven Hawkins
            jstastny@redhat.com Jan Stastny
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: