You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@trafodion.apache.org by "Hans Zeller (JIRA)" <ji...@apache.org> on 2016/05/11 18:19:13 UTC

[jira] [Resolved] (TRAFODION-1710) TMUDF: setString method does not accept non-integers for NUMERIC type

     [ https://issues.apache.org/jira/browse/TRAFODION-1710?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Hans Zeller resolved TRAFODION-1710.
------------------------------------
    Resolution: Fixed

Fix checked in on 5/10/16 with https://github.com/apache/incubator-trafodion/pull/471

> TMUDF: setString method does not accept non-integers for NUMERIC type
> ---------------------------------------------------------------------
>
>                 Key: TRAFODION-1710
>                 URL: https://issues.apache.org/jira/browse/TRAFODION-1710
>             Project: Apache Trafodion
>          Issue Type: Bug
>    Affects Versions: any
>            Reporter: Hans Zeller
>            Assignee: Hans Zeller
>             Fix For: 2.1-incubating
>
>
> When calling the TupleInfo.setString() method to set a NUMERIC column from a string, an exception is raised when the string contains a decimal point, like 123.45.
> Internally, this method calls setLong(), which expects a scaled up value, e.g. 123450. The code to do that scaling is missing. This affects both the Java and the C++  interface for TMUDFs.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)