[teiid-issues] [JBoss JIRA] (TEIID-5194) Osisoft translator - MAX and MIN on boolean column cause an error

RH Bugzilla Integration (JIRA) issues at jboss.org
Thu Jan 18 17:05:00 EST 2018


    [ https://issues.jboss.org/browse/TEIID-5194?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13521117#comment-13521117 ] 

RH Bugzilla Integration commented on TEIID-5194:
------------------------------------------------

Van Halbert <vhalbert at redhat.com> changed the Status of [bug 1530289|https://bugzilla.redhat.com/show_bug.cgi?id=1530289] from MODIFIED to ON_QA

> Osisoft translator - MAX and MIN on boolean column cause an error
> -----------------------------------------------------------------
>
>                 Key: TEIID-5194
>                 URL: https://issues.jboss.org/browse/TEIID-5194
>             Project: Teiid
>          Issue Type: Bug
>          Components: JDBC Connector
>    Affects Versions: 8.12.x-6.4
>            Reporter: Andrej Šmigala
>            Assignee: Ramesh Reddy
>             Fix For: 8.12.x-6.4, 10.1
>
>
> Running a query such as 
> {code:sql}
> SELECT MAX(BooleanValue) FROM BQT1.SmallA
> {code}
> fails with the following exception:
> {noformat}
> java.lang.ClassCastException: java.lang.Byte cannot be cast to java.lang.Boolean
>         at com.osisoft.jdbc.ResultSetImpl.getBoolean(ResultSetImpl.java:407)
>         at org.jboss.jca.adapters.jdbc.WrappedResultSet.getBoolean(WrappedResultSet.java:594)
>         ... 22 more
> {noformat}
> Same issue occurs when using MIN.
> Running an equivalent query directly against the Osisoft PI datasource returns the correct result, with the return type being int8 (i.e. byte)



--
This message was sent by Atlassian JIRA
(v7.5.0#75005)



More information about the teiid-issues mailing list