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

HANA translator: boolean type converted to tinyint in each convert

      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
      

            [TEIID-4226] HANA translator: boolean type converted to tinyint in each convert

            Filip Elias <felias@redhat.com> changed the Status of bug 1339652 from VERIFIED to CLOSED

            RH Bugzilla Integration added a comment - Filip Elias <felias@redhat.com> changed the Status of bug 1339652 from VERIFIED to CLOSED

            Jan Stastny <jstastny@redhat.com> changed the Status of bug 1339652 from ON_QA to VERIFIED

            RH Bugzilla Integration added a comment - Jan Stastny <jstastny@redhat.com> changed the Status of bug 1339652 from ON_QA to VERIFIED

            Van Halbert <vhalbert@redhat.com> changed the Status of bug 1339652 from MODIFIED to ON_QA

            RH Bugzilla Integration added a comment - Van Halbert <vhalbert@redhat.com> changed the Status of bug 1339652 from MODIFIED to ON_QA

            Van Halbert <vhalbert@redhat.com> changed the Status of bug 1339652 from NEW to MODIFIED

            RH Bugzilla Integration added a comment - Van Halbert <vhalbert@redhat.com> changed the Status of bug 1339652 from NEW to MODIFIED

            We were missing covering the conversion of boolean to string, which was causing the numeric conversion to be used instead. Now we'll map to true/false as expected.

            Steven Hawkins added a comment - We were missing covering the conversion of boolean to string, which was causing the numeric conversion to be used instead. Now we'll map to true/false as expected.

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

                Created:
                Updated:
                Resolved: