Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 201549

Summary: Aggregation in charts
Product: z_Archived Reporter: Corentin PB <corentin.pouhet-brunerie>
Component: BIRTAssignee: Jianchao Li <jianchao.li>
Status: RESOLVED FIXED QA Contact:
Severity: enhancement    
Priority: P3 CC: jianchao.li, Lionel.wyl, lzhu, zqian
Version: 2.2.0Keywords: plan
Target Milestone: 2.3.0 M4   
Hardware: All   
OS: All   
Whiteboard:

Description Corentin PB CLA 2007-08-29 06:08:28 EDT
Build ID: I20070625-1500

Steps To Reproduce:
1. New chart
2. Select data
3. Data binding...
4. Add aggregation
5. Select COUNT or COUNTDISTINCT function
6. Select a data field with a datatype equal to date
Result: the aggregation type is equal to date (i.e. the data type of the selected field) instead of integer
Comment 1 Yulin Wang CLA 2007-08-29 23:04:53 EDT
This will be an enhancement in aggregation builder. When user selects the function like Count, the data type should become integer automatically. However, DtE has to provide the data type information of selected function.
Comment 2 Lin Zhu CLA 2007-08-30 01:16:34 EDT
This is a valid enhancement. But we should also notice that some aggregations might have multiple result types.
Comment 3 Lin Zhu CLA 2007-11-12 02:23:42 EST
The new API should 
1.Return Integer if the aggregation is suppose to return an integer value (say, count)
2.Return ANY if the aggregation is not supposed to return data of one type (say, TopN)
Comment 4 Jianchao Li CLA 2007-11-15 22:10:05 EST
Add new API getDataType() to IAggregation to get the returned data type of the aggregation