[JBoss JIRA] (TEIID-2497) Add support for DECODE(column, column_value, column_to_replace_with)
by Van Halbert (JIRA)
Van Halbert created TEIID-2497:
----------------------------------
Summary: Add support for DECODE(column, column_value, column_to_replace_with)
Key: TEIID-2497
URL: https://issues.jboss.org/browse/TEIID-2497
Project: Teiid
Issue Type: Feature Request
Components: Query Engine
Affects Versions: 7.7.6
Reporter: Van Halbert
Assignee: Steven Hawkins
Looking at pivot and trying to use it like:
Select salesperson, SUM(DECODE(product, 'CarA', amount)) as ProductCarA,
SUM(DECODE(product, 'CarB', amount)) as ProductCarB,
SUM(DECODE(product, 'CarC', amount)) as ProductCarC
>From SALES
Group By salesperson
Teiid's Decode requires you to know the value to substitute, with this option, it can be dynamically substituted at run time.
See: http://www.clearpeaks.com/blog/data-warehousing/pivot-data-in-sql
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
12 years, 8 months
[JBoss JIRA] (TEIID-2496) "Object is already closed" error when reading CLOB from H2 in Teiid
by Steven Hawkins (JIRA)
[ https://issues.jboss.org/browse/TEIID-2496?page=com.atlassian.jira.plugin... ]
Steven Hawkins resolved TEIID-2496.
-----------------------------------
Resolution: Done
Addressed with a better type check in the data tier tuple source and also ensure that lob inlining happens proactively.
It may be good to add yet another tracking mode so that the inlining can be performed more lazily (either on demand when the batch is persisted or when processing is finished and the request wants to detach the lobs).
> "Object is already closed" error when reading CLOB from H2 in Teiid
> -------------------------------------------------------------------
>
> Key: TEIID-2496
> URL: https://issues.jboss.org/browse/TEIID-2496
> Project: Teiid
> Issue Type: Bug
> Components: Query Engine
> Affects Versions: 7.7.1
> Environment: Teiid 8.1, java version "1.7.0_09", Win 7, JBoss 7.0.1
> Reporter: Andriy Rokhmanov
> Assignee: Steven Hawkins
> Fix For: 8.4
>
> Attachments: EmbeddedTest.java, EmbeddedTestError.txt
>
>
> I am getting "The object is already closed [90007-168]" exception when attempt to read table with CLOB column in Teiid.
> For more details see attached sample unit test case (Embedded Teiid) and a complete exception dump.
> See discussion at https://community.jboss.org/thread/227854?tstart=0
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
12 years, 8 months