Merge branch 'master' into stop_task

This commit is contained in:
Fangjin Yang 2013-03-20 10:51:47 -07:00
commit 654a43a0f3
1 changed files with 5 additions and 2 deletions

View File

@ -83,8 +83,11 @@ public class QueryableIndexStorageAdapter extends BaseStorageAdapter
@Override @Override
public int getDimensionCardinality(String dimension) public int getDimensionCardinality(String dimension)
{ {
Column column = null; if (dimension == null) {
column = index.getColumn(dimension); return 0;
}
Column column = index.getColumn(dimension.toLowerCase());
if (column == null) { if (column == null) {
return 0; return 0;
} }