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

Osisoft translator - Cannot cast String to Float if value is negative

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 8.12.11.6_4
    • Fix Version/s: 10.1
    • Component/s: JDBC Connector
    • Labels:
      None

      Description

      Casting a string containing a negative value (e.g. '-24') to float fails with

      com.osisoft.rdsa.RdsaException: [PIOLEDBENT] Cannot convert -24 from String to Single.

      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

      select cast(N'-24' as single)

      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.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                rareddy Ramesh Reddy
                Reporter:
                asmigala Andrej Smigala
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: