[
https://issues.apache.org/jira/browse/TRAFODION-2383?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Hans Zeller resolved TRAFODION-2383.
------------------------------------
Resolution: Fixed
Fix Version/s: 2.1-incubating
Merged into Trafodion master on 12/23/2016 with
https://github.com/apache/incubator-trafodion/pull/882.
> Support TINYINT for TMUDFs
> --------------------------
>
> Key: TRAFODION-2383
> URL: https://issues.apache.org/jira/browse/TRAFODION-2383
> Project: Apache Trafodion
> Issue Type: Sub-task
> Components: sql-cmp
> Affects Versions: 2.1-incubating
> Reporter: Hans Zeller
> Assignee: Hans Zeller
> Priority: Minor
> Fix For: 2.1-incubating
>
>
> We need to update the TMUDF interfaces for C++ and Java to support TINYINT as
> well.
> Here is an example where we run into problems:
> Create the UDF shown in TRAFODION-2382.
> Run this query:
> {code:sql}
> select *
> from udf(join_udf(16, 'A', 'B'));
> {code}
> This will the following error, since the integer parameter is considered a
> NUMERIC with a length of 1 byte:
> {code}
> *** ERROR[11252] TypeInfo::getLong() and getDouble() not supported for SQL
> type 4 (SQLSTATE 38902)
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)