Quantcast
Channel: Pentaho Community Forums
Viewing all articles
Browse latest Browse all 16689

Not all data can be load if set HighCardinality to true.

$
0
0
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

Viewing all articles
Browse latest Browse all 16689

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>