]
Ramesh Reddy reassigned TEIID-5127:
-----------------------------------
Assignee: Ramesh Reddy (was: Steven Hawkins)
Osisoft translator - MOD fails with non-integer arguments
---------------------------------------------------------
Key: TEIID-5127
URL:
https://issues.jboss.org/browse/TEIID-5127
Project: Teiid
Issue Type: Bug
Components: JDBC Connector
Affects Versions: 8.12.x-6.4
Reporter: Andrej Šmigala
Assignee: Ramesh Reddy
Query such as
{code:sql}
SELECT FloatNum, 11, MOD(FloatNum, 11) FROM BQT1.SmallA
{code}
fails on the PI server with
{noformat}
com.osisoft.rdsa.RdsaException: [PIOLEDBENT] [SQL Analyzer] [Line 1:34] [%] Overload
resolution failed for (Single, Single) argument(s).
{noformat}
Similarly for Double arguments. It appears that the modulo operator % is only defined
when both arguments are integers (contrary to PI OLEDB Enterprise 2016 User Guide, which
states that it is defined for all numeric data types)