Hi Guys,
A question, I just met this problem, I have a cube and set 2 dimensions on it.
And I use Mondrian 3.8.0 api try to load the value. but I found after I set hightCardinality to true.
some values cannot be return …. if hightCardianlity is false, everything is fine.
try {
connection = olapDataSource.getConnection();
OlapConnection olapConnection = connection.unwrap(OlapConnection.class);
olapConnection.setReadOnly(true);
OlapStatement statement = olapConnection.createStatement();
cellSet = statement.executeOlapQuery(mdxQueryString);
} finally {
connection.close();
}
for (Position row : cellSet.getAxes().get(0)) {
if (cellSet.getAxes().size() > 1) {
for (Position column : cellSet.getAxes().get(1)) {
final Cell cell = cellSet.getCell(row, column);
String value = cell.getFormattedValue().toString();
logger.debug("print value =" + value) ;
}
}
}
Any idea?
Joey
A question, I just met this problem, I have a cube and set 2 dimensions on it.
And I use Mondrian 3.8.0 api try to load the value. but I found after I set hightCardinality to true.
some values cannot be return …. if hightCardianlity is false, everything is fine.
try {
connection = olapDataSource.getConnection();
OlapConnection olapConnection = connection.unwrap(OlapConnection.class);
olapConnection.setReadOnly(true);
OlapStatement statement = olapConnection.createStatement();
cellSet = statement.executeOlapQuery(mdxQueryString);
} finally {
connection.close();
}
for (Position row : cellSet.getAxes().get(0)) {
if (cellSet.getAxes().size() > 1) {
for (Position column : cellSet.getAxes().get(1)) {
final Cell cell = cellSet.getCell(row, column);
String value = cell.getFormattedValue().toString();
logger.debug("print value =" + value) ;
}
}
}
Any idea?
Joey