Community
Participate
Working Groups
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
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.
This is a valid enhancement. But we should also notice that some aggregations might have multiple result types.
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)
Add new API getDataType() to IAggregation to get the returned data type of the aggregation