[teiid-issues] [JBoss JIRA] Commented: (TEIID-1664) Teiid - Teradata queries containing LTRIM and RTRIM on the BQT booleanvalue column are returning unexpected BQT results
Warren Gibson (JIRA)
jira-events at lists.jboss.org
Wed Jun 29 17:37:23 EDT 2011
[ https://issues.jboss.org/browse/TEIID-1664?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12611869#comment-12611869 ]
Warren Gibson commented on TEIID-1664:
--------------------------------------
The DB contains 0 and 1 in the booleanvalue column. The source query is:
Source-specific command: SELECT g_0.INTKEY AS c_0, CASE WHEN g_0.BOOLEANVALUE = 0 THEN 0 WHEN g_0.BOOLEANVALUE IS NOT NULL THEN 1 END AS c_1 FROM smalla AS g_0 WHERE TRIM(LEADING FROM cast(g_0.BOOLEANVALUE AS varchar(100))) = 'true' ORDER BY c_0
> Teiid - Teradata queries containing LTRIM and RTRIM on the BQT booleanvalue column are returning unexpected BQT results
> -----------------------------------------------------------------------------------------------------------------------
>
> Key: TEIID-1664
> URL: https://issues.jboss.org/browse/TEIID-1664
> Project: Teiid
> Issue Type: Bug
> Components: Misc. Connectors
> Affects Versions: 7.4.1
> Reporter: Warren Gibson
> Assignee: Steven Hawkins
> Attachments: QT_teradata12_Push.vdb
>
>
> Teiid - Teradata queries containing LTRIM and RTRIM on the BQT booleanvalue column are returning unexpected results. The following query should be returning 22 rows but 0 rows are returned.
> SELECT intkey, booleanvalue FROM BQT1.SmallA WHERE LTRIM(BQT1.SmallA.BooleanValue) = 'true' ORDER BY intkey
> However, if the LTRIM is removed like (SELECT intkey, booleanvalue FROM BQT1.SmallA WHERE BQT1.SmallA.BooleanValue = 'true' ORDER BY intkey) 22 rows are returned.
> This should be logged against Teiid 7.4.1
> VDB attached.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the teiid-issues
mailing list