[
https://issues.jboss.org/browse/TEIID-5123?page=com.atlassian.jira.plugin...
]
Andrej Šmigala commented on TEIID-5123:
---------------------------------------
Upon further investigation, it turns out that a zero value ('0' or '0.0')
cannot be converted to Single either
Osisoft translator - Cannot cast String to Float if value is
negative
---------------------------------------------------------------------
Key: TEIID-5123
URL:
https://issues.jboss.org/browse/TEIID-5123
Project: Teiid
Issue Type: Bug
Components: JDBC Connector
Affects Versions: 8.12.x-6.4
Reporter: Andrej Šmigala
Assignee: Ramesh Reddy
Casting a string containing a negative value (e.g. '-24') to float fails with
{noformat}com.osisoft.rdsa.RdsaException: [PIOLEDBENT] Cannot convert -24 from String to
Single.{noformat}
This seems to be a bug in Osisoft PI SQL DAS (server-side not the JDBC driver), as
connecting to the PI server using Osisoft's SQL Commander and running
{code:sql}select cast(N'-24' as single){code}
results in the same error.
I think the best course of action would be to document this behaviour of the PI server as
known issue and NOT work around it.
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)