Bug 201549 - Aggregation in charts
Summary: Aggregation in charts
Status: RESOLVED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: BIRT (show other bugs)
Version: 2.2.0   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: 2.3.0 M4   Edit
Assignee: Jianchao Li CLA
QA Contact:
URL:
Whiteboard:
Keywords: plan
Depends on:
Blocks:
 
Reported: 2007-08-29 06:08 EDT by Corentin PB CLA
Modified: 2007-11-15 22:10 EST (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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