[JBoss JIRA] Updated: (TEIID-994) Unable to execute Oracle pipelined table function as procedure
by Steve Hawkins (JIRA)
[ https://jira.jboss.org/browse/TEIID-994?page=com.atlassian.jira.plugin.sy... ]
Steve Hawkins updated TEIID-994:
--------------------------------
Fix Version/s: 8.0
> Unable to execute Oracle pipelined table function as procedure
> --------------------------------------------------------------
>
> Key: TEIID-994
> URL: https://jira.jboss.org/browse/TEIID-994
> Project: Teiid
> Issue Type: Feature Request
> Components: Misc. Connectors, Query Engine
> Reporter: Steven Hawkins
> Fix For: 8.0
>
>
> Oracle pipelined table functions (can be used in Oracle queries as TABLE(...)) that can be put in the FROM clause and used as if they were tables although they are really procedures. We found that we imported this table function, although didn't get it quite right - the result set was wrong, which may just be a deficiency of the JDBC import metadata. We were able to map the proc to a table and execute but when we did we got a PL/SQL error from the db.
> Because this is a proc, we are executing it as a CallableStatement down in the JDBC connector which apparently does not work with DataDirect. I'm not sure how we can detect and do something different but seems like we need to have some metadata (procedure name in source?) that can tell us that this proc needs to be run differently and have the Oracle JDBC Connector deal with this properly.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
14 years, 6 months
[JBoss JIRA] Resolved: (TEIID-159) Modify our handling of BigDecimal division to use MathContext.DECIMAL128 as our rounding mode to improve scale and precision of results
by Steve Hawkins (JIRA)
[ https://jira.jboss.org/browse/TEIID-159?page=com.atlassian.jira.plugin.sy... ]
Steve Hawkins resolved TEIID-159.
---------------------------------
Resolution: Done
Updated the floating to bigdecimal conversion to use a scale of 16 for doubles and 8 for floats. Updated the logic in the bigdecimal x/y to use a scale of max(16, x.scale + y.precision + 1), then the result is normalized to remove trailing zeros.
> Modify our handling of BigDecimal division to use MathContext.DECIMAL128 as our rounding mode to improve scale and precision of results
> ---------------------------------------------------------------------------------------------------------------------------------------
>
> Key: TEIID-159
> URL: https://jira.jboss.org/browse/TEIID-159
> Project: Teiid
> Issue Type: Feature Request
> Components: Server
> Affects Versions: 6.0.0
> Reporter: Jerry Helbling
> Fix For: 7.0
>
>
> Using MathContext.DECIMAL128 should give a more usable scale and precision to the results.
>
> Current behavior
> 254403453878 / 21870000000 returns 12
> and
> 254403453878.0001 / 21870000000 returns 11.6325
>
> Improved behavior:
> 254403453878 / 21870000000 returns 11.632531
> and
> 254403453878.0001 / 21870000000 returns 11.632531
>
> We should also investigate what the impact of this change will be on users who may be relying on our current behavior.
> Reference: This enhancement was suggested by Issue Tracker Issue 175485, contributed by Greg Haber
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
14 years, 6 months
[JBoss JIRA] Updated: (TEIID-159) Modify our handling of BigDecimal division to use MathContext.DECIMAL128 as our rounding mode to improve scale and precision of results
by Steve Hawkins (JIRA)
[ https://jira.jboss.org/browse/TEIID-159?page=com.atlassian.jira.plugin.sy... ]
Steve Hawkins updated TEIID-159:
--------------------------------
Fix Version/s: 7.0
(was: 8.0)
Affects: [Documentation (Ref Guide, User Guide, etc.), Compatibility/Configuration, Release Notes] (was: [Compatibility/Configuration, Release Notes])
Moving into the 7.0 release, since this should not wait for 8 and should not be part of a dot release. Will update both the divide behavior and the conversion from floating types to bigdecimal.
> Modify our handling of BigDecimal division to use MathContext.DECIMAL128 as our rounding mode to improve scale and precision of results
> ---------------------------------------------------------------------------------------------------------------------------------------
>
> Key: TEIID-159
> URL: https://jira.jboss.org/browse/TEIID-159
> Project: Teiid
> Issue Type: Feature Request
> Components: Server
> Affects Versions: 6.0.0
> Reporter: Jerry Helbling
> Fix For: 7.0
>
>
> Using MathContext.DECIMAL128 should give a more usable scale and precision to the results.
>
> Current behavior
> 254403453878 / 21870000000 returns 12
> and
> 254403453878.0001 / 21870000000 returns 11.6325
>
> Improved behavior:
> 254403453878 / 21870000000 returns 11.632531
> and
> 254403453878.0001 / 21870000000 returns 11.632531
>
> We should also investigate what the impact of this change will be on users who may be relying on our current behavior.
> Reference: This enhancement was suggested by Issue Tracker Issue 175485, contributed by Greg Haber
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
14 years, 6 months