Skip to content

Commit

Permalink
[PSW-84] Allows numeric aggregations on BIGINT column type.
Browse files Browse the repository at this point in the history
[git-p4: depot-paths = "//open/mondrian-release/3.2/": change = 13762]
  • Loading branch information
lucboudreau committed Jul 22, 2010
1 parent db47297 commit 07cb5e7
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/main/mondrian/gui/validate/ValidationUtils.java
Expand Up @@ -425,9 +425,10 @@ && isEmpty(((MondrianGuiDef.View) cubeVal.fact).alias)))
factTable.schema,
factTable.name,
measure.column);
// Coltype of 2, 4,5, 7,8 is numeric types whereas
// 1, 12 are char varchar string and 91 is date
// type.
// Coltype of 2, 4,5, 7, 8, -5 is numeric types
// whereas 1, 12 are char varchar string
// and 91 is date type.
// Types are enumerated in java.sql.Types.
int agIndex = -1;
if ("sum".equals(
measure.aggregator)
Expand All @@ -439,7 +440,8 @@ && isEmpty(((MondrianGuiDef.View) cubeVal.fact).alias)))
agIndex = 0;
}
if (!(agIndex == -1
|| (colType >= 2 && colType <= 8)))
|| (colType >= 2 && colType <= 8)
|| colType == -5))
{
return messages.getFormattedString(
"schemaTreeCellRenderer.aggregatorNotValidForColumn.alert",
Expand Down

0 comments on commit 07cb5e7

Please sign in to comment.