[teiid-issues] [JBoss JIRA] (TEIID-2443) Support Language feature for "With Rollup"
Steven Hawkins (JIRA)
jira-events at lists.jboss.org
Fri Jul 26 11:47:25 EDT 2013
[ https://issues.jboss.org/browse/TEIID-2443?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Steven Hawkins resolved TEIID-2443.
-----------------------------------
Labels: analytical olap (was: analytical olap teiid)
Resolution: Done
Added support for a single rollup and marked appropriate support for mysql, oracle, sqlserver, derby, etc. We may need to update the sybase translator logic to differentiate between ASE and the other sybase products.
As this feature is picked up we can look at expanded to the more general form of olap grouping (for now the single rollup ala sql server 2005/mysql/derby seems sufficient) and adding aggregate decomposition over join/union support which is simply disabled at this point.
> Support Language feature for "With Rollup"
> ------------------------------------------
>
> Key: TEIID-2443
> URL: https://issues.jboss.org/browse/TEIID-2443
> Project: Teiid
> Issue Type: Feature Request
> Components: Query Engine
> Reporter: Ramesh Reddy
> Assignee: Steven Hawkins
> Labels: analytical, olap
> Fix For: 8.5
>
>
> It would be useful to provide the clause 'WITH ROLLUP' in Teiid for analytical type queries. Example:
> {code}
> Group Name SalesYTD
> North America Northwest 123237.00
> North America Northwest 37534.00
> North America Northwest 48003.00
> North America Southwest 164232.00
> North America Southeast 39667.00
> North America Southeast 105810.00
> Europe France 74569.00
> Europe Germany 59456.00
> Pacific Australia 93403.00
> Europe United Kingdom 78327.00
> {code}
> With query like
> {code:SQL}
> SELECT [Group], [Name], SUM([SalesYTD]) AS 'Total Sales'
> FROM Table
> GROUP BY [Group], [Name] WITH ROLLUP
> {code}
> will produce
> {code}
> Group Name Total Sales
> Europe France 74569.00
> Europe Germany 59456.00
> Europe United Kingdom 78327.00
> Europe NULL 212352.00
> North America Northwest 208774.00
> North America Southeast 145477.00
> North America Southwest 164232.00
> North America NULL 518483.00
> Pacific Australia 93403.00
> Pacific NULL 93403.00
> NULL NULL 824238.00
> {code}
> 4 rows have been added, 3 for sub total of each [Group], and 1 row for grand total.
> Teiid needa to build it's analytical function library to be useful in reporting situations.
--
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
More information about the teiid-issues
mailing list