After migrating from OBIEE 11g to OAS, We are experiencing an issue where numeric fields that display COUNT DISTINCT aggregations are showing decimal places in OAS reports, whereas they displayed as integers (no decimals) in OBIEE.
Key Findings:
- Both RPDs have identical aggregation rules: COUNT DISTINCT on a VARCHAR field
- The Logical SQL Query (SQL Issued section in Analytics Report: Advanced tab) appears identical in both environments
- In the RPD Logical Layer, the column properties show:
- OBIEE 11g: Data type displays as (INT) next to column name in General tab
- OAS: Data type displays as (VARCHAR) next to column name in General tab
- Column Source tab shows the same expression in both:
COUNT(DISTINCT View_Table.VARCHAR_FIELD)
Why does OAS infer the logical column data type as VARCHAR while OBIEE 11g correctly inferred it as INT for a COUNT DISTINCT aggregation? Is this a known change in OAS's type inference logic?
Is the recommended fix to explicitly CAST the result as INTEGER in the logical column source, or is there a configuration/setting that restores OBIEE's behavior?
Also there is an Idea which explains this problem: